BuiltByOtte Cloud is live: managed panel hosting, 30% off year one. Configure yours

Cookie consent

The cookie banner, how trackers are held back until a visitor agrees, and how visitors change their choice.

On this page

With Ask visitors for cookie consent on, every visitor sees a cookie banner until they make a choice. Scripts for analytics and marketing only run after the visitor allows that category.

The banner

Visitors can choose Accept all, Reject all or Settings. Settings opens a panel with a switch per category and a Save my choices button.

Banner style What visitors see
Box in a corner A box in the bottom left or bottom right corner
Bar along the bottom A bar across the bottom of the page
Window in the middle of the page A window that covers the page until a choice is made

Corner sets the side for the box and for the small cookie settings button.

All texts on the banner can be changed in the settings. The banner follows the colours, fonts and corner rounding of your theme.

Categories

Category Default Setting to turn it on or off
Necessary Always on None
Preferences Not asked Ask about preference cookies
Analytics Asked Ask about analytics cookies
Marketing Asked Ask about marketing cookies

Turn off a category you do not use, so visitors are not asked about it. The name and description of each category can be changed.

How trackers are held back

There are three ways, and you can use them together.

Your own code per category

Paste a snippet into Analytics code, Marketing code or Preference code. It is added to every page, but only runs after the visitor allows that category.

Marking a script tag

For code that your theme or another extension adds, change the script tag to:

<script type="text/plain" data-pt-consent="analytics">
  ...
</script>

Use analytics, marketing or functional. This also works with src:

<script type="text/plain" data-pt-consent="marketing" src="https://example.com/pixel.js"></script>

Automatic blocking

With Block known trackers automatically on, Privacy Tools looks at every page before it is sent and holds back known trackers, wherever they come from:

Category Trackers
Analytics Google Analytics, Google Tag Manager, Hotjar, Microsoft Clarity, Yandex Metrica, Segment, PostHog, Mixpanel, Heap, Matomo
Marketing Meta Pixel, LinkedIn Insight, TikTok Pixel, X (Twitter) Pixel, Google Ads, DoubleClick, AdSense, Microsoft Advertising, Pinterest Tag, Reddit Pixel, Snap Pixel

With Tell Google about the choice (Consent Mode v2) on, Google tags get the default denied for analytics and ads before anything loads, and an update as soon as the visitor chooses. Google Ads and Analytics need this for visitors in the EU.

YouTube videos

With Load YouTube videos without tracking cookies on, embedded YouTube videos load from youtube-nocookie.com.

Global Privacy Control

With Respect the Global Privacy Control signal on, visitors whose browser sends this signal are treated as rejecting all optional cookies and do not see the banner.

Changing a choice later

  • With Show a small button to change cookie settings later on, a small cookie button stays in the corner after the choice.
  • Any link to #cookie-settings opens the settings panel, for example a link in your footer.
  • Signed in customers can also change their choice on their privacy page.
  • The cookie policy page at /cookie-policy has the same switches.

When a visitor takes back consent, Privacy Tools removes the cookies of known trackers and reloads the page.

A choice made by a signed in customer is stored with the account, so it comes back when they sign in on another device.

Asking again

Visitors are asked again after Ask again after (days), 365 by default. Raise Consent version after you add new trackers, and everyone sees the banner again.

/cookie-policy shows your introduction, the categories with their switches, the visitor's consent ID and the cookies from Cookies on your site. Add one cookie per line:

_ga | analytics | 2 years | Tells visits apart
_fbp | marketing | 3 months | Measures ads on Facebook and Instagram

The category is necessary, preferences, analytics or marketing. The cookies of Paymenter itself (the session cookie, XSRF-TOKEN, remember_web_*) and pt_consent are always listed, so you do not need to add them. A cookie you add twice is shown once. To link to your own policy page instead, fill in Policy link.

Brass theme

Privacy Tools works with Brass without changes to the theme. The analytics code of Brass is held back like any other tracker. When a visitor chooses in the Privacy Tools banner, the cookie notice of Brass is not shown as well.

For developers

The page has a small script API:

Call What it does
PrivacyTools.has('analytics') true when the visitor allowed that category
PrivacyTools.get() The current choice
PrivacyTools.open() Opens the settings panel
PrivacyTools.onChange(fn) Runs fn after every change

The browser also fires a privacy:consent event on window, and a privacy_consent event is pushed to dataLayer for Google Tag Manager.

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.