No cookie banner to manage
The snippet sets no cookies and stores no identifier, so for anonymous visitors there is nothing to consent to. You skip the consent popup that GA4 needs for EU traffic.
GuidesWeb
Paste one snippet, get clean traffic numbers, skip the cookie banner.
Privytics adds privacy-first analytics to Squarespace with one snippet you paste into a single box. There is no coding and no plugin to install. Most Squarespace owners reach for GA4, which needs a cookie consent banner for EU visitors. Privytics is cookieless and EU-hosted, so you paste it once, save, and page views start arriving with no banner to manage.
The snippet sets no cookies and stores no identifier, so for anonymous visitors there is nothing to consent to. You skip the consent popup that GA4 needs for EU traffic.
Privytics counts visitors with an anonymous id that resets every day. Nothing is written to the browser, so there is nothing to clear or explain.
Your traffic data is stored in EU data centres in Germany. You remain the data controller for your site.
The free plan covers 10,000 events a month with no credit card. That is plenty for most Squarespace sites, and you can upgrade later for session replay and longer history.
About five minutes, on the free plan, without a credit card.
In your Squarespace dashboard, go to Settings, then Advanced, then Code Injection. You will see a box labeled Header. Code Injection is a paid feature: you need one of the plans that includes it, which are Core, Plus, or Advanced. The cheaper Basic plan and the older Personal plan do not have it, so confirm your plan first. Everything else happens in this one box.
Settings > Advanced > Code Injection > HeaderCopy the two tags below and paste them into the Header box. Replace YOUR_CLIENT_ID with the client id from your Privytics project, then click Save. Squarespace applies this to every page, so you only do it once. It can take a minute to go live, so give it a moment before you check.
<script>
window.op=window.op||function(){var n=[];return new Proxy(function(){arguments.length&&n.push([].slice.call(arguments))},{get:function(t,r){return"q"===r?n:function(){n.push([r].concat([].slice.call(arguments)))}} ,has:function(t,r){return"q"===r}}) }();
window.op('init', {
apiUrl: 'https://api.privytics.com',
clientId: 'YOUR_CLIENT_ID',
trackScreenViews: true,
trackOutgoingLinks: true,
});
</script>
<script src="https://privytics.com/op1.js" defer async></script>Open your live site in a normal browser tab and click around a few pages. Then open your Privytics dashboard: within a minute or two you will see those page views appear. Page views and outgoing link clicks are tracked automatically, so once you see them, you are done. This is the main value and it needs no extra setup.
Privytics dashboard > RealtimePage views need nothing extra. If you also want to count a specific action, like clicks on a Book Now button, add a Code Block to that page. Edit the page, click an insert point, choose Code, and paste the small button below. When a visitor clicks it, Privytics records a book_now_click event, and you can rename book_now_click to anything you like. Code Blocks that run JavaScript are on the same paid plans that give you Code Injection, and they only show on the live site, not in the editor preview. Leave the snippet from step 2 exactly as it is.
<button onclick="window.op('track', 'book_now_click')">Book Now</button>Yes for the setup. Code Injection is a paid feature, included on the Core, Plus, and Advanced plans but not the cheaper Basic plan or the older Personal plan, so confirm your plan first. Privytics itself is free to start, with 10,000 events a month and no credit card.
The default snippet writes nothing to the device and sends no cookie, so for the anonymous case there is nothing to consent to. You remain the data controller.
In the EU. Your data is stored in Germany. Event history is kept for 12 months on the free plan and 5 years on paid plans, which also add session replay.
Yes. Page views and outgoing link clicks are automatic. For a specific click, add a Squarespace Code Block that calls window.op('track', 'your_event'), as shown in the last step. Code Blocks with JavaScript need a paid plan and only run on the live site, not the editor preview.