Google Analytics 4 (GA4) makes it easy to track how readers interact with your Jekyll LMS site — which courses are most popular, how far they read, and which lessons get the most engagement. Best of all, it works entirely client-side: no backend needed.
Create a GA4 Property
Head to analytics.google.com and create a new GA4
property. Copy your Measurement ID — it looks like G-XXXXXXXXXX.
Add to _config.yml
google_analytics: "G-XXXXXXXXXX"
JekyllLMS automatically injects the GA4 snippet into every page when this key is
set. No additional setup required — just run jekyll build and deploy.
Verify in Dashboard
Open GA4’s Realtime report and visit your site — you should see your session appear within 30 seconds. Give it 24–48 hours for full data to populate.