Install guides / Shopify

Add AnalyzeUser to Shopify

Replace YOUR_SITE_ID with the site id from your project's setup screen.

  1. In the admin, open Online Store, then Themes. On your live theme choose Edit code.
  2. Open layout/theme.liquid and paste the tag just before </head>.
  3. Save. Storefront pages are tracked; Shopify's own checkout pages don't run theme code.
<script defer src="https://analyzeuser.com/track.js" data-site-id="YOUR_SITE_ID"></script>

To check it works, open your site in another browser (browsers you use the dashboard in are left out of your stats) and watch the dashboard's Online count. Next: custom events, revenue attribution, or proxying through your domain so ad blockers don't hide visitors.

Other site builders

Start free trial