Install TayStack on Shopify
Add the TayStack script to a Shopify theme to count storefront visits; checkout and purchase tracking are not supported.
Not tested: Not yet tested on a live Shopify store. The steps follow how the platform is documented to work. Menu names change, so look for the setting described rather than the exact words.
In your theme code, the file layout/theme.liquid holds the head shared by storefront pages. Make a copy of your theme first, then paste the tag just before the closing </head>.
Replace site_xxxxxxxx and your-domain.com with your own site id and domain. The dashboard's Install card shows the tag with your values filled in.
Not supported: Checkout, purchase and revenue tracking for Shopify are not supported. TayStack counts visits to your storefront pages, and the events you send yourself. It does not read orders from Shopify.
Add the script
<head>
<!-- ...the existing tags... -->
<script defer data-website-id="site_xxxxxxxx" data-domain="your-domain.com" src="https://www.taystack.com/js/script.js"></script>
</head>Check it works
- Publish or deploy the change, then open your site on its real domain. Test addresses and editor previews may not match the domain you registered, and
localhostis not tracked. - Sign in, open your site in the dashboard and look at the Installation status. It reads “Waiting for the first event” until an event arrives, then “Receiving data”. It checks every few seconds while the page is open; the Verify installation button checks straight away.
To look at the request itself, follow the steps in Quick start.
If it does not work
- Theme changes apply to the theme you edited. Check that it is the published one.
- Storefront pages carry the script. Checkout pages are generally not part of the theme, so visits there are not expected to be counted.
- Ad blockers: some block analytics scripts and the script fails silently. Test in a private window with extensions off. See Troubleshooting.
- Content Security Policy: if your site sends a
Content-Security-Policyheader,script-srcmust allowwww.taystack.comandconnect-srcmust allow it too, because events are sent there. - Caching: a page cache or CDN may still serve the old HTML without the script. Clear the cache, then reload.
- Both
data-website-idanddata-domainmust be present and match your site, or the script does nothing. More in Troubleshooting.
Back to all install guides.