Skip to Content
Getting StartedInstall the tracker

Install the tracker

Snow tracks your website with a single small script, sa.js. It’s lightweight, loads asynchronously, and starts reporting page views the moment it runs.

The snippet

Copy your snippet from Settings → Tracking in the dashboard. It looks like this:

<script defer src="https://api.snowanalytics.app/sa.js" data-site="YOUR_SITE_ID"></script>
PartMeaning
srcYour collector’s sa.js URL. Snow fills this in for you.
deferLets the page finish loading first, so tracking never slows your site down.
data-siteRequired. Your Site ID. Without it, the script does nothing.

Replace https://api.snowanalytics.app and YOUR_SITE_ID with the values from your own dashboard. The snippet shown in Settings → Tracking already has them filled in.

Where to put it

Add the snippet to the <head> of every page you want to track. A few tips:

  • Add it once, site-wide. Use your template, layout, or your site builder’s “header / custom code” box so it appears on every page rather than pasting it per-page.
  • <head> is preferred so the script is ready as early as possible, but anywhere on the page works.
  • Don’t add it twice. Snow guards against double-initialization, but a single copy keeps things clean.

For step-by-step instructions tailored to your stack (Next.js, WordPress, Webflow, Shopify, and more), see the Install Guides.

What gets tracked automatically

Once the snippet is on your page, Snow records the following with no extra code:

  • Page views, including in single-page apps when the route changes (see Single-page apps).
  • Where the visit came from: referrer and any utm_* / ref / source / via parameters on the URL.
  • Device & browser, derived from the request on the server.
  • Approximate location (country, city), derived from the visitor’s IP on the server, never stored on their device.

To track actions like sign-ups or purchases, add custom events.

Optional attributes

The snippet accepts a few optional data-* attributes for advanced setups:

AttributePurpose
data-api-urlSend events to a specific URL, used with the first-party proxy.
data-mode="cookieless"Turn on cookieless tracking (no cookies at all).
data-domainTreat a visitor as one identity across subdomains.

See the full Script configuration reference for details and defaults.

Confirm it’s working

  1. Open your website in a new tab.
  2. In the dashboard, check the Live view. You should appear within a few seconds.
  3. Still nothing? View your page source and confirm sa.js is present, check the data-site value, and see Troubleshooting.