Skip to content
Docs menuOverview

Documentation

On this page

CentPath counts the visitors to your site and the sales they bring, without cookies, and shows which sources bring paying customers. These pages show you how to set it up, one step at a time.

New here? Add your site, then install CentPath: one script in the <head> your pages share, and visits start to arrive. Built with WordPress, Shopify, Next.js, Lovable or another platform? Install CentPath has a guide for each. Then connect your payments and set up goals.

Something missing? See all questions and the privacy policy.

Install CentPath

  • Install CentPath: Add the CentPath script once to the head your pages share, check that visits arrive, and fix what stops them.
    • Add a site: Add a website to your workspace with its name and domain: which domains are accepted, and which time zone its days follow.
    • The script: The snippet's attributes, its goal queue, page views in single-page apps, UTM tags and click ids, and what the script sends and doesn't.
    • Add CentPath to an HTML site: Paste the snippet into the head of your HTML pages, or the header file they share, then upload them.
    • Add CentPath to WordPress: Add the snippet to every page of your WordPress site with the free WPCode plugin's Header & Footer box, or with a child theme.
    • Add CentPath to Shopify: Paste the snippet into your theme's theme.liquid to count every storefront page, and what that leaves out: Shopify's checkout.
    • Add CentPath to Next.js: Add the script to a Next.js app with next/script, in the App Router's root layout or the Pages Router's custom Document and App.
    • Add CentPath to React and Vite: Paste the snippet into the index.html of a React app built with Vite, and count every page your router opens.
    • Add CentPath with Google Tag Manager: Add CentPath as a Custom HTML tag that fires on every page, then publish your container. The first pageview proves it works.
    • Add CentPath to Webflow: Paste the snippet into your Webflow site's head code in Site settings, then publish. Custom code needs a paid plan.
    • Add CentPath to Wix: Add the snippet to the head of every page as Wix custom code. Your site needs to be published with a connected domain.
    • Add CentPath to Squarespace: Paste the snippet into the Header field of Squarespace's code injection, on the Core, Plus or Advanced plan.
    • Add CentPath to Framer: Add the snippet as custom code at the start of the head on every page of your Framer site, then publish.
    • Add CentPath to Ghost: Paste the snippet into the Site header of Ghost's code injection, once for every page.
    • Add CentPath to Vue and Nuxt: Paste the snippet into a Vue app's index.html, or add it to app.head in nuxt.config.ts, and count every page your router opens.
    • Add CentPath to Astro: Add the snippet to the head of the layout your Astro pages share, marked is:inline so Astro leaves it as written.
    • Add CentPath to SvelteKit: Paste the snippet into src/app.html, the page template every SvelteKit page is rendered into.
    • Add CentPath to Laravel: Paste the snippet into the Blade layout your Laravel pages share, or the root template of an Inertia app.
    • Add CentPath to Django: Paste the snippet into the base template your Django templates extend, so every page that extends it counts.
    • Add CentPath to Ruby on Rails: Paste the snippet into the application layout your Rails views render in, so every page counts its visits.
    • Add CentPath to a Lovable app: Ask Lovable's AI to add the snippet with a prompt you paste, publish your app, and add it by hand if the AI changes it.
    • Add CentPath to a Bolt app: Ask Bolt's AI to add the snippet with a prompt you paste, publish your site, and add it by hand in Code view if the AI changes it.
    • Add CentPath to a v0 app: Ask v0's AI to add two next/script tags to your Next.js app's root layout with a prompt you paste, then publish your app.
    • Add CentPath to a Replit app: Ask Replit Agent to add the snippet to your web app with a prompt you paste, publish it, and add it by hand if the AI changes it.
  • Check your installation: Check that visits arrive: the first pageview in Setup, your site's id in the page's source, and the request in your browser's developer tools.
  • Troubleshooting: What to do when no visits arrive: a Content-Security-Policy, test visits, ad blockers, a wrong site id and single-page apps.

Track revenue

  • Connect your payments: Pick how your buyers pay you: Stripe, Polar, Paddle or another checkout, and link each sale to the visit that brought it.
    • Count your Stripe sales: Link every Stripe sale to the visit that brought it: Checkout by its success URL, and Payment Links, Buy Buttons and Pricing Tables by a read-only key.
    • Count your Polar sales: Link every Polar sale to the visit that brought it: mark your success URL, and add a read-only access token for amounts and renewals.
    • Count your Paddle sales: Link every Paddle sale to the visit that brought it: Paddle buttons are tagged for you, checkouts from code take one line, and a read-only key lists the sales.
    • Count sales from any checkout: Count the sales of PayPal or your own checkout from your thank-you page: with code and an amount, or with the order id in its address.
  • How revenue is counted: Where a sale comes from, how it is tied to the visit that brought it, renewals, unknown amounts, and what a sale not linked to a visit means.
    • Currency: Your site's currency, sales in several currencies, which are never converted, and amounts in each currency's smallest unit.

Track goals

  • Set up goals: Count sign-ups, booked demos or visits to a page as goals: by path, with a data-goal attribute, or from your own code.
    • Count a visit to a page: Count a goal each time a visitor reaches a page, by its path or a pattern for several pages, with no code on your site. Past visits count too.
    • Count clicks and form sends: Add the data-goal attribute to a link, a button or a form, and each click or form sent counts as a goal, with no script of your own.
    • Send goals from JavaScript: Call goal on window.analytics when something happens, send a sale with its amount, currency and order id, and see why a call sent nothing.
  • Funnels: Build a funnel of pages and goals, choose when its steps count, and read how many visitors reach each step and where they drop off.

Read your stats

  • Your dashboard: What each figure, chart and report on a site's dashboard counts, how to choose the ones you see, and the Visits list.
  • Sources and channels: How each visit gets its channel, its source and its campaign, from UTM tags, an ad click id or the site that linked to yours.
    • Track campaigns with UTM tags: Tag the links you share with UTM tags, so each campaign's visitors, sales and channel show on your dashboard.
    • Bot filtering: Known bots and automated browsers are never counted. Visits from cloud servers are, unless you exclude them in Setup.
  • Date ranges and Compare: Pick the dates your dashboard counts: Today and Yesterday by the hour, More periods, All time and your own dates, and compare them with earlier ones.
    • Filter your dashboard: Click a row in any report to see only its visits, combine filters, keep the buyers alone, and share a filtered view by its address.
  • Add your ad spend: Enter what each campaign cost, and read its spend, ROAS and cost per order beside the revenue it brought, in the Campaigns table.

Your account

  • Your team and roles: Invite people as an Admin, an Editor or a Viewer, choose which sites each sees, and what each role can do.
  • Plans and billing: The free trial, Starter and Growth, picking and changing a plan, cancelling, and what happens when a month goes over its events.
  • Site settings: What each tab of a site's Setup holds, Site, Install, Sales, Goals, Sharing and Advanced, and who can change it.
    • Set your site's time zone: Choose the time zone your site's days and hours follow, and what changing it does to the day you change it.
    • Share a dashboard: Give anyone a read-only link to one site's dashboard, with sales figures hidden or shown, an optional password and an end date.
    • Delete a site: Delete a site with all its visits, sales and settings from Setup's Danger zone, then take its snippet off your website.
  • Privacy and your visitors' data: What the script collects and what it doesn't, how visitors are counted with no cookies, what the IP address is used for, how long data is kept, and where.