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?
- Can I install TapCub with Google Tag Manager?
- 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 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
Paste the TapCub snippet once into the site-wide Header field of Squarespace code injection and save. No plugin is needed. Register your domain, then open Realtime to see the first visit.
Add the snippet once
- 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> - Open code injection. In Squarespace, open the site-wide code injection settings. In recent versions it is under Settings → Developer tools → Code injection; older menus put it under Settings → Advanced. Code injection is available on plans that include it.
- Paste into the Header field. Use the site-wide header, not a single page's header, so every page gets the snippet. Save.
Menu names in site builders change from time to time. If you cannot find the field, search the Squarespace help center for "code injection".
Register your domains
Make sure the domain visitors use is listed on Web analyticsConfigurationSDK code. Subdomains of a listed domain are accepted automatically; hits from any other host are dropped.
The built-in *.squarespace.com address is not a subdomain of your own domain. If people preview or browse the site through it, register it separately.
What is and is not tracked
Every page that uses the site-wide header is tracked, including blog posts and store product pages. Checkout pages hosted by the platform may not load your header code, so completed orders are better sent from a server or an order webhook.
Confirm it works
Open the published site in a normal browser window and watch Web analyticsRealtime. The visit appears within a few seconds. If it does not, check that data is arriving step by step.
Logged-in editors browsing the live site are counted like any visitor. Exclude your own visits with exclusion rules.
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.