More in Getting started
- Install TapCub on your website
- Migrate from Google Analytics 4 or Baidu Tongji
- Add a website, app or mini-program
- How do I add TapCub to WordPress?
- How do I add TapCub to Shopify?
- Where do I paste the TapCub tracking code?
- How do I track a React, Vue or Next.js app?
- How do I check that TapCub is collecting data?
- Why does TapCub show no data after I installed it?
- What is a site, and how many can I add?
- Which time zone should I pick for a site?
- Which domains do I need to register?
- How do I keep my own visits out of the reports?
- Why does my visitor count differ from Google Analytics 4?
- Can I run TapCub alongside Google Analytics 4?
- How do I move my goals and events from GA4?
- Can I import my historical data from GA4?
- How do I add TapCub to Squarespace?
- How do I add TapCub to Wix?
- Which Content Security Policy rules does TapCub need?
- Do ad blockers block TapCub?
- How do I send events from my server?
- How do I install TapCub on React?
- How do I install TapCub on Nuxt?
- How do I install TapCub on Vue?
- How do I install TapCub on Next.js?
- How do I capture a HAR file for TapCub support?
- How do I create and manage API keys?
- How do I send events with the HTTP API?
- All guides in this category
Still have a question?
Could not find it? A person reads every message, usually within a few hours on business days.
Chat with usShort answer
Yes. Add the snippet as a Custom HTML tag that fires on all pages, publish the container, and TapCub tracks route changes on its own.
Create the tag
- 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> - In GTM, create a new tag of type Custom HTML. Paste the snippet unchanged. TapCub reads its settings from the
data-attributes on the tag, so keep them. - Set the trigger to All Pages. One trigger is enough. Do not add a History Change trigger: the script already sends a pageview when the URL changes, and a second copy would be ignored anyway.
- Preview, then publish. Check the tag fires in Preview mode, then submit and publish the container. Nothing reaches your live site until you publish.
Consent triggers and blockers
If you attach the tag to a consent trigger, it only fires after a visitor accepts, so visitors who decline are not counted. TapCub’s default collection stores nothing in the browser; decide with your own legal advice whether it needs that gate.
Tags in GTM load after the container, so an extension that blocks GTM also blocks TapCub. Pasting the snippet directly into the page head, as in the HTML guide, avoids that dependency.
Confirm it works
After publishing, open the site in a normal browser window and watch Web analyticsRealtime. GTM Preview mode is a real visit, so it is counted too. If nothing appears, check that data is arriving.
Did this answer your question?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.