- Buffer — the tracker saves the landing page in the visitor’s browser without sending anything to Maestra Platform. If the visitor accepts, it’s sent and recorded. If they decline, it’s deleted.
- Gate — nothing is collected until the visitor accepts.
Consent modes
When a visitor withdraws consent
If a visitor accepts and later switches to Decline, Maestra Platform:- Deletes its identifier cookies (
maestraDeviceUUID,directCrm-session) and the data it keeps in local storage and IndexedDB. - Stops sending tracking requests from that page on.
The visitor’s choice is remembered.
Once the visitor accepts or declines, the choice is saved in the
Once the visitor accepts or declines, the choice is saved in the
maestraConsent cookie for one year. On later pages, the tracker applies it right away instead of waiting for the banner. The cookie holds only the choice and its date — no identifiers.Set up consent with the Maestra Shopify app
The Maestra app embed reads the visitor’s choice from Shopify’s Customer Privacy API. It works with the native Shopify cookie banner and with any consent app that reports to Shopify.1
Open App embeds
In Shopify admin, go to Online Store → Themes → Customize → App embeds.
2
Open the Maestra embed
Find the Maestra embed and open it.
3
Set Consent mode
- Buffer until consent — buffer mode (default).
- Don’t load before consent — gate mode.
4
Click Save
- Maestra Platform tracks a visitor only when they allow both analytics and marketing. A visitor who allows analytics but not marketing isn’t tracked.
- In regions where your store doesn’t show a cookie banner, tracking starts on page load, as before.
- The Shopify Web Pixel (cart and product events) follows the same choice. No separate setup needed.
Set up consent with JavaScript
If you install the tracker with a code snippet or through a tag manager, add aconsent block to the create call, then pass the visitor’s choice from your consent tool to the tracker.
1. Add consent settings to create
Without the
consent block, the tracker works as before and tracks every visitor from the first page.
In gate mode on your own site, the tracker script still loads — it just keeps and sends nothing. If you need zero requests to Maestra Platform before consent, load the tracker snippet only after the visitor accepts.
2. Pass the visitor’s choice
Callconsent.set from your consent tool’s callback when the visitor answers the banner or changes their choice later:
3. Read the current state (optional)
Calls made while consent is pending — product views or cart updates, for example — are held in the browser. They’re sent if the visitor accepts on the same page and discarded if they decline.
What the tracker stores in the browser for consent
Consent adds two records to what Maestra Platform keeps in the visitor’s browser. List them in your cookie policy under whichever category your legal team chooses.
For identifier cookies and everything else Maestra Platform stores, see Cookies and Browser Storage.
How to check it on your site
Open your website in a private window, so no earlier choice is stored, and open your browser’s developer tools.1
Check Network before answering the banner
Go to Network and filter by
maestra. In buffer mode, you should see only the tracker script (tracker.js). In gate mode on Shopify, you should see nothing.2
Check cookies and session storage
Go to Application → Cookies. There shouldn’t be a
maestraDeviceUUID cookie yet. In buffer mode, Session Storage holds maestraLanding with your landing page.3
Click Accept
In Network, you should see visit requests.
maestraDeviceUUID and maestraConsent appear in Cookies, and maestraLanding disappears.Questions? Reach out to your Maestra Platform Forward Deployed Marketer.