Help centerTracking
Install the script
Where to paste t.js on Webflow, WordPress, HTML, or Shopify.
Each web property has its own snippet. It lives in Site settings → Tracking. Copy it as-is: the id, the domain, and the API URL are already filled in.
Paste it before </body>, on every page you want to measure. The script loads with defer. It does not track a site whose domain does not match the property.
By tool
- HTML — paste the block before
</body>in the page template. - Webflow — Project settings → Custom code → Footer code. Then publish.
- WordPress — the same snippet in the theme footer, or in your theme’s footer-scripts field. There is no Cockpiit plugin.
- Shopify — if the store is connected, Cockpiit places the script itself. Otherwise paste it in the theme (
theme.liquid, before</body>).
What the script records
Pageviews, source (referrer, UTM), device, path, scroll, outbound clicks, and events you send. Visitor identity depends on GDPR mode: a cookie, or a rotating id with no cookie until consent is granted.
Single-page apps
The script listens for URL changes. You do not call a function on every route, except for a custom event.
Stores and the banner
A published consent banner adds a second script to the snippet. On a connected Shopify store, that script is installed automatically as well.