Get started

GET STARTED

Installing the script

Script attributes, frameworks, single-page apps and troubleshooting.

The script is small, loads with defer and sets no third-party cookies. It records page views automatically, including navigation in single-page apps.

Frameworks

<script defer data-website-id="YOUR_WEBSITE_ID" src="https://analytics.5h3ll.site/js/script.js"></script>

Script attributes

AttributeWhat it does
data-website-idRequired. Your website ID.
data-consent="required"Waits for visitor consent before tracking. See Consent.
data-domainCookie domain, to share a visitor across subdomains (for example .example.com).
data-apiSend events to a different endpoint, for example your own proxy.
data-allow-localhostTrack on localhost. Off by default so development does not pollute data.

Troubleshooting

  • Check the browser Network tab for a request to /api/event. A blocked request usually means an ad blocker or a content security policy.
  • If you use a content security policy, allow https://analytics.5h3ll.site for script-src and connect-src.
  • Visits from localhost are ignored unless you add data-allow-localhost.
  • The domain must match one of the domains configured for the website.

Something missing or wrong? Open a support ticket.