Skip to content

Integrations

CrispStats is one script tag, so it runs on any site that lets you add one. These guides show where the tag goes on each platform, how to check it works, and how to tie payments to the visits behind them.

<head>
<scriptdeferdata-site="cs_pk_your_site_key"data-domains="example.com"src="https://in.crispstats.com/d.js"></script>
set-up guides
36
core script, compressed
about
2.2 KB

Frameworks

Add the script to the root layout of your app.

  • Angular

    Add CrispStats to an Angular app with one script tag in src/index.html. Router navigation is counted for you; apps on hash location add data-hash.

  • Astro

    Add CrispStats to an Astro site with one is:inline script tag in your layout. Static pages and view transitions are both counted as pageviews.

  • Django

    Add CrispStats to a Django site with one script tag in base.html, the template your pages extend, then send server-side events from Python.

  • Docusaurus

    Add CrispStats to a Docusaurus docs site with one entry in the scripts array of docusaurus.config.js. Page changes are counted, with no plugin to install.

  • Gatsby

    Add CrispStats to a Gatsby site with onRenderBody in gatsby-ssr.js. Every built page carries the tag, and page changes are counted, with no plugin to install.

  • HTML

    Add CrispStats to a static or hand-written HTML site with one script tag in the head of every page. No build step, no cookies, with an install check.

  • Hugo

    Add CrispStats to a Hugo site by pasting one script tag into the head partial every page uses, overriding the theme's copy. Rebuild, deploy, done.

  • Jekyll

    Add CrispStats to a Jekyll site by pasting one script tag into the head include, overriding the theme's copy. Works on GitHub Pages, with no plugin.

  • Laravel

    Add CrispStats to a Laravel app with one script tag in your Blade layout, then send server-side events with Laravel's HTTP client. No Composer package.

  • Next.js

    Add CrispStats to a Next.js app with one next/script element in the root layout. Route changes are tracked for you, with no cookies and no package.

  • Nuxt

    Add CrispStats to a Nuxt app with one entry in app.head.script in nuxt.config.ts. Every page and route change is counted, with no module or package.

  • React

    Add CrispStats to a React or Vite app with one script tag in index.html. React Router and TanStack Router routes are counted, with no npm package.

  • Remix

    Add CrispStats to a Remix or React Router framework app with one script element in the Layout export of app/root.tsx. Route changes are counted for you.

  • Ruby on Rails

    Add CrispStats to a Rails app with one script tag in application.html.erb. Turbo Drive visits are counted as pageviews, with no gem and no cookies.

  • SvelteKit

    Add CrispStats to a SvelteKit app with one script tag in src/app.html. Client-side navigation is counted for you, with no afterNavigate code or package.

  • Vue

    Add CrispStats to a Vue app built with Vite by pasting one script tag into index.html. Vue Router navigation is counted for you, with no plugin or package.

Content management systems

Print the script in the head of every page the CMS renders.

  • Ghost

    Add CrispStats to a Ghost publication: paste one script tag into Settings, Advanced, Code injection, Site header. No theme edit, no cookies, every post counted.

  • WordPress

    Add CrispStats to WordPress with a wp_head action in a small site plugin of your own. Cookieless analytics on every page, no plugin to install.

Site builders

Paste the script into the site-wide custom code setting.

  • Framer

    Add CrispStats to a Framer site by pasting one script tag into the site-wide custom code at the end of the head, then publishing. Page changes are counted.

  • Squarespace

    Add CrispStats to Squarespace by pasting one script tag into the Header field of Code Injection. Available on the Core, Plus and Advanced plans.

  • Webflow

    Add CrispStats to Webflow by pasting one script tag into Site settings, Custom code, Head code, then publishing. Which Webflow plans allow it, and how to check.

  • Wix

    Add CrispStats to a Wix site with Settings, Custom Code: paste one tag, load it on all pages in the head. Needs a published site with a connected domain.

Ecommerce platforms

Add the script to the store theme, then connect the store so orders count as revenue.

  • Shopify

    Add CrispStats to a Shopify store with one script tag in theme.liquid, then connect the store so each order counts as revenue tied to its visit.

Hosts

Serve the script from your own domain through the host.

  • Cloudflare

    Serve CrispStats from your own domain with a Cloudflare Worker on one route, so visitors behind ad blockers are counted. No cookies are forwarded.

  • Netlify

    Add CrispStats to a Netlify site in your code or with snippet injection, then serve it from your own domain with one edge function. No cookies forwarded.

  • Vercel

    Add CrispStats to a site hosted on Vercel, then serve it from your own domain with one route in vercel.json that strips cookies before forwarding.

Payment providers

Connect a provider so each payment is tied to the visit that led to it.

  • Creem

    Connect Creem to CrispStats with an API key and pass the visitor id in checkout metadata, so payments, renewals and refunds are tied to the visits behind them.

  • Dodo Payments

    Connect Dodo Payments to CrispStats with a read-only API key and pass the visitor id in metadata, so payments, renewals and refunds are tied to their visits.

  • Freemius

    Connect Freemius to CrispStats with your API Bearer token and Product ID to import history and track sales, renewals and refunds.

  • Lemon Squeezy

    Connect Lemon Squeezy to CrispStats with an API key and pass the visitor id as custom data, so orders, renewals and refunds are tied to the visit behind them.

  • Paddle

    Connect Paddle Billing to CrispStats with an API key and pass the visitor id in customData, so each transaction, renewal and refund is tied to its visit.

  • Polar

    Connect Polar to CrispStats with an organization access token and pass the visitor id in checkout metadata to attribute orders, renewals and refunds.

  • Razorpay

    Connect Razorpay to CrispStats with your live key ID and secret and pass the visitor id in order or subscription notes to attribute every payment.

  • RevenueCat

    Connect RevenueCat to CrispStats with a v2 secret key and sign customers in with one id in your app and site, so App Store and Play purchases meet their visit.

  • Stripe

    Connect Stripe to CrispStats with a restricted key and pass the visitor id at checkout, so every payment, renewal and refund is tied to the visit behind it.

Tag managers

Load the script through a tag you already manage.

  • Google Tag Manager

    Load CrispStats through a Google Tag Manager Custom HTML tag that fires on All Pages. One trigger covers single-page navigation; no cookies are set.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.