Install guide
Add Parcetta to Next.js
About ten minutes: add one tag, mark your main button, and check it with a test visit. A Next.js app you can deploy (App Router or Pages Router).
Updated November 14, 2026
1. Get your tag
Start for free (or sign in) and add your site. On the site's Install page, copy your tag. It looks like this, with your own site id:
<script defer src="https://app.parcetta.com/t/v1.js" data-site="YOUR-SITE-ID"></script>
Using a coding assistant? The Install page also has a ready-made prompt you can hand it instead.
2. Add it to Next.js
- Open your root layout:
app/layout.tsx(orpages/_app.tsxwith the Pages Router). - Add the tag with
next/script, using theafterInteractivestrategy, as below. - Deploy.
import Script from "next/script";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
<Script src="https://app.parcetta.com/t/v1.js" data-site="YOUR-SITE-ID" strategy="afterInteractive" />
</body>
</html>
);
}- Page changes made by the router are counted automatically: there's nothing to add for client-side navigation.
- If your site sends a Content-Security-Policy, add
https://app.parcetta.comtoscript-srcandconnect-src.
3. Mark your main button
To see whether visitors did the thing (booked, bought, signed up), mark that button or link with your goal's id:
<a href="/book" data-cc-goal="book-a-call">Book a call</a>
Can't edit the button's HTML in Next.js? Leave this for now: you'll still see where visitors came from and what they looked at.
4. Check it with a test visit
Back in Parcetta, open a test visit from the Install page. It opens your site with a temporary test link. Browse a page and click your main button, and three green checks confirm the tag, the visit and the click. Test visits never show in your reports.
Asking visitors first
Parcetta sets no cookies, but if your site asks for consent anyway, add data-consent="required" to the tag and nothing is sent until your consent tool says yes. More on cookieless counting.
Other platforms
- WordPress
- Squarespace
- Wix
- Shopify
- Webflow
- Anything else: paste the tag into your site's
<head>on every page.