Skip to content

Add Google Analytics to Jekyll documentation site #111

Description

@vlavrynovych

Description

Add Google Analytics tracking to the Jekyll documentation site to monitor visitor traffic, popular pages, and user behavior.

Implementation

Jekyll has built-in support for Google Analytics via configuration. Add to docs/_config.yml:

# Google Analytics
google_analytics: UA-XXXXXXXXX-X  # Replace with actual GA tracking ID

Or for Google Analytics 4:

# Google Analytics 4
google_analytics:
  measurement_id: G-XXXXXXXXXX  # Replace with actual GA4 measurement ID

Steps

  1. Create Google Analytics account and property for core.msr.lavr.site
  2. Get tracking ID (UA-X or G-X measurement ID)
  3. Add configuration to docs/_config.yml
  4. Build and verify tracking code appears in generated HTML
  5. Test with Google Tag Assistant or GA real-time view
  6. Update documentation-local-setup.md if needed

Benefits

  • Track visitor metrics (page views, sessions, users)
  • Identify most popular documentation pages
  • Understand user navigation patterns
  • Measure documentation effectiveness
  • Make data-driven decisions for documentation improvements

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions