I already run a consent tool. Should analytics wait for consent?

Wait if your legal advice says analytics needs consent where you operate, and let the consent tool add the script only after a visitor agrees. Otherwise, waiting drops everyone who declines or ignores the banner from your counts. Decide per tool, because a script that sets no cookies may get a different answer. This is not legal advice.

Last updated 26 November 2026. By Paul Badarau.

Lena runs a fictional travel blog. Her consent tool blocks every third-party script until the visitor clicks accept. She is adding a cookieless analytics script and has to decide whether it goes behind the same gate or loads for everyone.

The facts for that decision are about the script. The PostDeploy Analytics script sets no cookies and keeps only in-page memory. Analytics does not store IP addresses or user agents, and it counts visitors per day with a salted hash whose salt changes every day. New Projects respect Do Not Track and Global Privacy Control by default. Whether that means you need no consent for analytics where you operate is a question for someone qualified. PostDeploy does not claim compliance with any law.

If analytics waits for consent:

  1. Put the snippet, exactly as Analytics shows it, in the consent tool's analytics category, so the tool adds it only after the visitor agrees.
  2. The script sends a pageview when it loads. The visit counts from the page where the visitor agreed. Earlier pages in that visit are not counted, and neither are page goals on them.
  3. Check that window.postdeploy exists before you record a named goal, because it is defined only once the script has run: if (window.postdeploy) postdeploy.track('signup').

If analytics does not wait, place the snippet outside the consent tool so it loads on every page. List it in your privacy policy either way.

A gated count is not a smaller copy of the full one. A visitor who leaves before answering the banner is never counted, and short visits give the least time to answer. So the gated count leans toward longer visits, and bounce rate reads lower than it would without the gate. If you switch between the two setups, compare the periods before and after with that in mind.

The product page for this is Analytics.

Start your 14-day free trial