ENES Start free trial

Install the FastAnalytics tracking script

One line of code, on every page, and you are done. It works on plain HTML, CMSs, shops and single-page apps.

FastAnalytics team · Updated · 3 min read

1. Get your code

  1. Sign in to your dashboard and open My websites.
  2. Add your website with its name and domain (for example example.com). Subdomains such as shop.example.com are included automatically.
  3. Copy the script shown next to your website. Your code looks like FA- followed by 10 characters.

2. Paste it before </head>

<script>window.hm=window.hm||function(){(window.hm.q=window.hm.q||[]).push(arguments)};</script>
<script defer src="https://e.fastanalytics.site/e.js" data-id="FA-XXXXXXXXXX"></script>

Paste it inside the <head> of every page, ideally just before </head>. Most sites have a shared header template, so you only do it once.

  • defer makes it load after your page, so it never blocks rendering.
  • It is under 7 KB and sets no cookies.
  • Single-page apps (React, Vue, Next.js…) are supported: every route change counts as a page view.

3. Check it works

Open your website in a normal browser window, then open Realtime in your dashboard. Your visit should appear within a few seconds. If not, see Check your installation.

Guides by platform

FAQ

Can I use the same code on several domains?

Each website accepts visits only from the domains listed for it. Add every domain to the same website in My websites, or create one website per domain to see them separately.

Does it work on localhost?

By default visits from localhost are ignored so your development work does not pollute reports. Add the attribute data-local to the script if you want to test locally.

Keep reading