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:
- 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.
- 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.
- Check that
window.postdeployexists 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.