Platforms and no-code
Add privacy-friendly analytics to WordPress, Shopify, Webflow, Framer, Squarespace, Wix, Ghost and more: where each builder keeps its custom-HTML box.
Pick your platform for the exact steps. Every page ends with a way to check that it works, and the most common reasons it does not.
| Platform | Where the code goes |
|---|---|
| WordPress | A header-scripts plugin, or a child theme |
| Shopify | theme.liquid, and a custom pixel for checkout |
| Webflow | Site settings, Custom code |
| Framer | Site settings, Custom code |
| Ghost | Settings, Code injection |
| Wix | Settings, Custom code |
| Squarespace | Code injection |
| Next.js | The npm package, in the root layout |
| Lovable, Bolt, v0, Replit | index.html, or ask the builder |
| Google Tag Manager | A Custom HTML tag |
npx trckable init sets up Next.js and React apps itself, and adds the tag to
plain HTML, SvelteKit, Astro and Nuxt pages.
Astro, Hugo, Docusaurus, Jekyll
Put the script tag in the shared layout: src/layouts/Layout.astro,
layouts/partials/head.html, docusaurus.config.js under scripts, or
_includes/head.html.
Electron, Tauri and PWAs
A PWA on your site's domain counts like any page: the npm package or the tag.
An Electron or Tauri window loads file:// or localhost, which trckable does
not count, so send those screens from your backend through the
HTTP API.
Anything not listed
If it lets you paste HTML into the head, it works. If it does not, the npm package works. If neither, the HTTP API takes events from your server.
Landing page and app
A plain HTML landing page on example.com and a Next.js app on app.example.com, as one site: one visitor, one journey, and the sale credited to its source.
WordPress
Add trckable to a WordPress site with a header-scripts plugin or your child theme, without losing it on the next theme update.