TapCub is live — analytics, insights and live chat, free on one platform
Help center

How do I add TapCub to Shopify?

Where the snippet goes in a Shopify theme, which domains to register, and what changes when you switch themes.

Getting started1 min readLast updated Oct 28, 2026TapCub teamPart of Install TapCub on your website

Short answer

Edit your published theme’s theme.liquid and paste the snippet just before </head>. Storefront pages are tracked; Shopify’s own checkout is not.

Add the snippet to your theme

  1. Copy the snippet. Copy your snippet from Web analyticsConfigurationSDK code. It already contains your site key and looks like this:
    SDK code
    <script defer src="https://static.pathclue.com/client.js" data-site="YOUR_SITE_KEY"></script>
  2. Open the theme code. In Shopify admin go to Online Store → Themes, open the menu next to your current theme and choose Edit code.
  3. Edit layout/theme.liquid. Paste the snippet on its own line just before </head>, then save. Every storefront page uses this layout, so one copy is enough.

Register both store domains

Make sure the domain visitors use is listed on the same page. Subdomains of a listed domain are accepted automatically; hits from any other host are dropped.

Your your-store.myshopify.com address is not a subdomain of your custom domain, so register it separately if anyone browses the store through it, for example while previewing a theme. Hits from a host that is not listed are dropped and show up as “Domain mismatch” in DataData quality.

What a theme script cannot see

Checkout and the order status page run on Shopify’s checkout, which does not load theme.liquid. Product, collection, cart and content pages are tracked; the checkout steps are not.

If you need completed orders in TapCub, send them as events from your backend with the server-side SDK described in the developer docs.

The snippet lives in one theme. When you publish a different theme, paste it into that theme’s theme.liquid too, or tracking stops on the day you switch.

Confirm it works

Open the storefront in a normal browser window and watch Web analyticsRealtime. If nothing appears, check that data is arriving.

Did this answer your question?

We use your answers to fix and expand this page.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics