Add Antlytics to Jekyll
Prerequisites
- An Antlytics account (sign up free)
- Your tracking ID from Settings → Tracking Snippet in your Antlytics dashboard
Install the snippet
Step 1 — Create the include
Create _includes/antlytics.html:
<script
defer
src="https://www.antlytics.com/tracker.js"
data-tracking-id="YOUR-SITE-ID"
data-api-host="https://www.antlytics.com"
></script>
Note: Replace
YOUR-SITE-IDwith the tracking ID from your Antlytics dashboard.
Step 2 — Add the include to your head layout
Open _includes/head.html (or your default layout at _layouts/default.html) and add the include inside <head>:
<!-- _includes/head.html -->
<head>
<meta charset="utf-8" />
<title>{{ page.title }}</title>
{% include antlytics.html %}
</head>
If your theme places the <head> content elsewhere, add the include to that file.
Verify installation
- Visit your site in a browser.
- Open your Antlytics dashboard → Overview.
- Your visit should appear within a few seconds.
If data does not appear after a few minutes, check the troubleshooting guide.
Optional: First-party proxy
To avoid ad blockers, set up a first-party proxy on your own domain.
Need help?
Email support@antlytics.com with your site ID and page URL.
Something missing? Get in touch and we will update these docs.