Shopify integration TapCub analytics and chat for Shopify
Paste one script into your theme to track every storefront page and turn on live chat. Learn which checkout pages a theme script can and cannot see, and how to record exact orders.
- Works with any theme
- Bots counted separately
- Server API for exact orders
Add the script to your theme
The snippet goes into the published theme once, and covers every storefront page.
-
1
Copy the snippet
From Web analytics → Configuration → SDK code; it already contains your site key.
-
2
Open the theme code
In Shopify admin: Online Store → Themes → the ⋯ menu next to your current theme → Edit code.
-
3
Paste before
</head>Open
layout/theme.liquidand add the snippet just before the closing head tag. -
4
Register both domains
Add your
myshopify.comdomain and your custom domain on the SDK code page.
index.html
<script defer src="https://static.pathclue.com/client.js" data-site="YOUR_SITE_KEY"></script>Copy the version with your real site key from Web analytics → Configuration → SDK code.
Storefront reports, plus exact revenue
The theme tag covers browsing; the server API covers the money.
Storefront traffic
Sources, pages and realtime visitors, humans separated from bots.
Orders from the server
Theme scripts miss the hosted checkout; a server-side order event records paid orders exactly.
Live chat on product pages
Same tag, one switch — answer shoppers with their journey in view.
Cookieless by default
Analytics needs no consent banner; chat sets a functional cookie only after a visitor opens it.
Shopify questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
Where does the snippet go in Shopify?
In layout/theme.liquid, just before </head>, so every storefront page loads it. Full steps in the Shopify guide.
Why is my checkout not tracked?
Shopify hosts the checkout on its own pages that do not run theme scripts. Record purchases with a server-side order event instead; it is also immune to ad blockers.
Do I lose tracking when I change themes?
Yes — the snippet lives in the theme, so re-add it to the new theme (or duplicate the current one first). Realtime confirms it within seconds.
Which domains do I register?
Both the myshopify.com domain and your custom domain, on the SDK code page. Hits from an unregistered host are dropped.
Is there a Shopify app?
You can paste the script directly — no app needed. The same script also turns on live chat.
The detailed steps, and other platforms
The full install guide for this platform, plus the other places the same script goes.