ENES Start free trial

Install FastAnalytics on Shopify

Shopify lets you edit the theme layout, which is shared by your storefront pages. That is where the script goes.

FastAnalytics team · Updated · 3 min read

Add the script to your theme

  1. In Shopify admin, go to Online Store > Themes.
  2. On your current theme, open the … menu and choose Edit code.
  3. Open layout/theme.liquid.
  4. Paste your script just before </head> and save.
  5. Open your store and check Realtime in your dashboard.
<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>

Domains

Add both your own domain and your myshopify.com domain to the website in My websites, so visits from either are accepted.

Checkout pages

Shopify controls the checkout and usually does not run theme code there. Storefront pages (home, collections, products, cart) are measured; checkout steps may not be. Changing themes means pasting the script again in the new theme.

FAQ

Will it slow down my store?

No. The script is under 7 KB and loads deferred, after the page.

Keep reading