How to add aydex.cloud analytics to Shopify

Paste one line into your theme to start tracking a Shopify store.

Last updated

  1. In the Shopify admin go to Online Store, Themes, then Edit code on your live theme.
  2. Open layout/theme.liquid.
  3. Paste this line just before the closing head tag, replacing YOUR_TRACKING_ID with the ID from your aydex dashboard.
  4. Save, then visit your storefront and watch the Live view in aydex.
<script defer data-site="YOUR_TRACKING_ID" src="https://t.aydex.cloud/script.js"></script>

This tracks storefront pages. Checkout pages on Shopify are controlled by Shopify and may not run custom scripts on every plan, so conversions at checkout may not be visible. Keep a copy of the line, because switching themes means pasting it again.

Frequently asked questions

Can I track purchases?
Not automatically. Checkout pages are restricted on many plans. If your theme has a thank-you page you can edit, call window.aydex.track('purchase', { value: 49 }) there.

Try it on your own site

Free for up to 10,000 pageviews a month. One script tag, no cookies.

Start free