Cookie Consent
Cookie consent is the decision your visitor makes in the cookie banner on your site: accept or reject, often per category such as analytics and marketing. This guide explains the two switches in your AxiTrace workspace, exactly what happens in the browser before and after a decision, which banner signals AxiTrace reads, and how to verify the whole thing on a cold browser.
Respect cookie consent is off by default on new and existing workspaces alike. While it is off, no part of AxiTrace looks at a cookie banner and your tracking behaves exactly as it always has. Updating a plugin or the SDK never starts gating your tracking by itself.
On this page
- 1. The two workspace switches, and where they apply
- 2. Before the decision, after acceptance, after refusal, on withdrawal
- 3. What counts as marketing consent, and what does not
- 4. How the setting reaches the browser
- 5. Do Not Track is a separate, voluntary signal
- 6. Events that report no consent state
- 7. Microsoft Advertising
- 8. Consent platforms, one by one
- 9. Verifying it works on a cold browser
- 10. Troubleshooting
1. The two workspace switches
Open Workspace → Settings and find the Cookie consent card. Everything on this page is controlled from there. You never configure consent per plugin, per store or per page: the workspace is the single source of truth and every surface follows it. The same consent rules apply to events sent to Klaviyo, exactly as they do for your ad platforms.
| Switch | What it does |
|---|---|
| Respect cookie consent | The master switch. On: AxiTrace does nothing in the visitor's browser until they accept marketing cookies in your banner - no tracking, no cookies or local storage, no pixels, no Microsoft ID Sync - and an event whose visitor explicitly refused is never sent to an ad platform. Off (default): AxiTrace does not check consent anywhere, and the Microsoft UET bridge and ID Sync run unrestricted. Your store is responsible for its legal basis. |
| Forward events that do not report a consent state | Read only while the master switch is on. It decides what happens to events that reach AxiTrace without saying whether the visitor agreed. See section 6. |
Compliance remains your determination as data controller. AxiTrace enforces the policy you choose here, it does not decide what your legal basis is.
Where the switch applies
With Respect cookie consent on, this is what each surface does in the browser and what it tells the server about the visitor's decision:
| Surface | Browser gate | Server consent source | Minimum version |
|---|---|---|---|
| JavaScript SDK on any site (manual snippet, tag manager, custom storefront) | Yes. The SDK reads the workspace policy before it boots and stays inert until a marketing grant. | meta.consent on every event the browser sends |
SDK 0.12.0, served automatically from axitrack.js |
| WooCommerce | Yes, through the SDK. With the WP Consent API installed the plugin gate applies on top of it. | The decision recorded in the browser travels with the purchase | Plugin 1.4.0 |
| Shopware 6 | Yes, through the SDK. The plugin's own Cookie consent mode can tighten it further. | The decision recorded on the order at placement (axitrace_consent) |
Plugin 0.3.0 |
| Magento 2 and Hyva | Yes, through the SDK, which reads Magento's own user_allowed_save_cookie. No template change needed. |
Cookie Restriction Mode decision, read when the order is placed | Module 0.2.0 |
| Shopify app pixel | Yes. The pixel reads Shopify's customer privacy API and sends nothing before a marketing grant. It still writes its identifiers for every visitor. | The consent state of the matching pixel session is inherited by the orders/paid webhook |
App pixel 1.9.0 |
| Shopify Microsoft Ads Custom Pixel | Yes. Microsoft's UET base code loads only after a marketing grant. Re-paste it once. | Not applicable: this pixel talks to Microsoft, not to AxiTrace | Snippet version 2 |
| PHP SDK (server to server) | No browser involved | The consent value you pass through withContext() |
PHP SDK 1.6.0 |
| BigCommerce | No The integration does not apply the consent switch in the browser. | None. Its events arrive with no consent state and are treated by section 6. | - |
If a page passes requireConsent: true to Axitrace.init(), that page gates even
when the workspace switch is off. A page passing false changes nothing: the workspace
setting wins. The same rule applies to the plugin-level gates (WooCommerce with the WP Consent API,
Shopware's Wait for consent modes) - they are an extra condition on top of the workspace policy.
2. What happens, moment by moment
Before the visitor decides
- No
vt_vid,vt_sidorvt_uidcookie, and nolocalStorageorsessionStorageentry. - No
/trackrequest, no Meta or TikTok pixel bridge call, no Microsoft ID Sync and no Microsoft UET push. - The only request the SDK makes is
GET /sdk-config, which asks your workspace policy and carries no identifiers. If the page itself passesrequireConsent: true, not even that request is made until a grant arrives. - Tracking calls your page makes in the meantime are held in memory (up to 50) and replayed in order once the visitor accepts, each keeping the time it actually happened. A purchase that occurred while the banner was still open is therefore not lost.
After acceptance
The SDK boots on the spot, with no page reload: it mints the visitor id, sends the page view of the page the visitor accepted on, replays anything held, and from then on behaves like any other install. Every event it sends carries the resolved consent state, so the server leg can apply your forwarding policy.
After a refusal
Nothing is written and nothing is sent, for the rest of the page. Held calls are dropped rather than
replayed. Server-side purchases are a separate path and keep flowing: an order placed by a visitor who
refused is still stored in AxiTrace and still appears in your dashboards and revenue, but its advertising
identifiers (click IDs, _fbp, _fbc and the rest) are stripped before anything else
in the pipeline can read them, and it is never forwarded to an ad platform. E-mail, phone, order id, value
and currency are kept, because they are what makes the order countable in your own reporting.
On withdrawal
A visitor who takes their consent back mid-page is noticed: a Consent Mode update flipping to
denied, a TCF consent narrowed below the purposes AxiTrace needs, a WP Consent API
deny, a consent cookie deleted or flipped to a deny value, or a plain call to
Axitrace.revoke(). All of them stop the SDK and delete what it stored:
vt_vid,vt_sidandvt_uid, plus theirlocalStoragemirrors;- the queued events that had not been sent;
- the session-scoped entries: session, session start, last seen, campaign and stored referrer;
- every cached Microsoft customer id (
vt_ms_cid_*).
Cookies belonging to other tools - Meta's _fbp and _fbc, TikTok's _ttp,
Reddit's _rdt_uuid - are deliberately left alone: they are not ours to delete. A later
grant() starts a new visitor; the previous identity is not restored.
3. What counts as marketing consent
AxiTrace exists to forward conversions to ad platforms, which is an advertising purpose. So only marketing consent unlocks it. A visitor who granted analytics only is not tracked at all, and there is no third "analytics" state to configure.
With the gate on, the SDK arms every signal below at once. The first one to report a grant starts tracking.
| Signal | What AxiTrace reads | Grants when |
|---|---|---|
| Google Consent Mode v2 | window.dataLayer entries ['consent', 'default'|'update', {...}], in both the array form and the arguments form gtag() pushes |
ad_storage and ad_user_data are both 'granted'. analytics_storage is never read. |
| IAB TCF v2.2 | window.__tcfapi, through an event listener |
The CMP reports gdprApplies === false, or purposes 1 and 7 are consented (a page may add more purposes, never remove these two). |
| WordPress Consent API | The wp_listen_for_consent_change event on document |
The marketing category is allow. A deny on it is a withdrawal. |
| Shopware cookie manager | The CookieConfiguration_Update event on document, and the axitrace-enabled cookie |
The AxiTrace cookie group is accepted (or the cookie you named in the plugin is present with an accepting value). |
| Magento and Hyva Cookie Restriction Mode | The user_allowed_save_cookie cookie, polled |
It carries a truthy entry (Magento writes {"1":1} keyed by website id; an older bare 1 counts too). The cookie disappearing is a withdrawal. |
| Shopify customer privacy | init.customerPrivacy.marketingAllowed and the visitorConsentCollected subscription |
marketingAllowed === true. |
| The JavaScript API | Axitrace.grant() / window.axitraceConsent.grant() |
You call it. This path is always available and cannot be switched off. |
What does not count
- Analytics-only consent.
analytics_storage: 'granted'withad_storagedenied or absent is not a grant. -
A CMP's own opaque cookie. Many banners store the whole decision as a blob
(
CookieConsent={stamp:'...'},OptanonConsent=...). If you pointconsentCookieat such a cookie by name only, AxiTrace reads it as unknown and never as a grant, because the blob says nothing about marketing consent specifically. A bare cookie name grants only on the values1,true,yes,allow,allowed,granted,accept,acceptedandall; it declines on0,false,no,deny,denied,opt-outand the empty string. Use{ name: 'cookie_name', value: 'exact_value' }when only one specific value means consent. - A signal that errors. Every adapter fails closed: one that throws, or that cannot determine a state, contributes nothing. It never produces a grant by accident.
The one-line API
Whatever your banner is, it can grant consent to AxiTrace with a single call from its accept callback:
window.axitraceConsent && window.axitraceConsent.grant();
Or, equivalently, on the SDK global:
Axitrace.grant(); // marketing consent given: start tracking
Axitrace.revoke(); // withdrawn: stop and delete AxiTrace's own identifiers
Axitrace.hasConsent(); // true once a grant has been resolved
grant() too early
You do not have to wait for axitrack.js to finish loading. A grant() made
before the SDK is ready is queued and applied the moment it initialises, so you can put the call wherever
your banner's callback naturally sits.
Page-level options
On a site that is wired by hand, Axitrace.init() accepts the options below. All of them are
optional, and none of them can loosen the workspace policy.
| Option | Default | Notes |
|---|---|---|
requireConsent |
false |
Gates this page regardless of the workspace setting, and suppresses the policy request itself
until a grant arrives. Passing false never switches the workspace gate off.
|
consentCookie |
null |
A cookie name ('my_cmp_ok'), or { name: 'my_cmp', value: 'yes' } when
only one specific value counts as consent. See the allow and deny values above.
|
consentSignals |
'auto' |
'auto' arms every signal. Pass an array to narrow it, for example
['api', 'cookie']. Valid entries: 'api', 'cookie',
'gcm', 'tcf', 'vendor'. 'api' is always on.
|
consentTcfPurposes |
[1] |
Extra IAB TCF purposes this page requires. The list is unioned with the purposes AxiTrace always needs, 1 and 7, so a page can add a purpose but never drop one. |
consentCategory |
'marketing' |
Accepted for backward compatibility and ignored. Only marketing consent ever unlocks AxiTrace. Any other value is noted once in the debug log and changes nothing. |
4. How the setting reaches the browser
The SDK does not carry your policy inside the script file and your pages do not render it into the HTML, because a page cache would then serve one visitor's policy to the next. Instead, before it boots, the SDK asks for it:
GET https://axi.yourdomain.com/sdk-config?pk=pk_live_YOUR_PUBLIC_KEY
The answer states whether this workspace requires consent, whether it respects Do Not Track, how unknown-state events are forwarded, and (if you use Microsoft Ads) the customer id for ID Sync. Then:
- Propagation. The answer is cacheable for 5 minutes, so a switch you flip in the admin panel takes effect on your site within 5 minutes.
- Fail closed. If the answer does not arrive within 2 seconds, or is not usable (a network error, a non-2xx, a truncated body, or an explicit "we do not know"), the SDK writes nothing and sends nothing. It retries at 5 s, 15 s and 45 s after init, holding your tracking calls in memory in the meantime.
- After the last retry the SDK stays inert for the rest of that page. The next page load tries again. The safe direction is always "track nothing", never "track a visitor whose policy we could not read".
- Server-side purchases are unaffected by any of this: they never go through the browser.
The Shopify app pixel and the Microsoft Ads Custom Pixel read the same endpoint, so one switch really does govern every surface.
5. Do Not Track
Do Not Track (DNT) is a browser-wide setting. A visitor switches it on once and every website they open receives the same flag. There is no banner and no per-site choice, which makes it a different question from cookie consent.
- EU law does not require you to honour DNT. GDPR and the ePrivacy directive are built around the consent your cookie banner collects, not around this flag. Respecting DNT is a voluntary gesture.
- Off by default, on new and existing workspaces, in the SDK and in the policy the tracking endpoint serves. Nothing turns it on behind your back.
- On: the tracking script does nothing for visitors whose browser sends DNT, whatever they chose in your cookie banner. DNT wins even over an explicit consent grant.
- Orders reported by your store platform (plugins, Shopify webhooks, the PHP SDK) come from a server that never sees the DNT flag, so they are still recorded and follow your cookie consent settings.
The switch lives next to this one, in Workspace settings → Privacy & consent → Do Not Track (DNT).
6. Events that report no consent state
Some events reach AxiTrace without saying whether the visitor agreed, because the integration does not pass that information, or because the store has no banner at all. They are indistinguishable from each other as a policy question, so you decide which way they fall with Forward events that do not report a consent state (read only while Respect cookie consent is on):
| Setting | What happens to an event with no consent state |
|---|---|
| Off (default) | It is not sent to your ad platforms. If your platform does not pass consent, every conversion disappears, purchases included. |
| On | It is sent as normal, and only an explicit refusal blocks. |
An explicit denied is absolute: no setting turns it back into a forwardable event. Either way the event is still stored and still appears in your AxiTrace dashboards - only the outbound hop is skipped - and every blocked event is written to your integration log with the reason, so the effect is never invisible. The ad platforms concerned are Facebook, Google Ads, GA4, Microsoft Ads, TikTok, Reddit, Pinterest, LinkedIn and OpenAI.
Shopify raises orders from its own servers - paid orders, point of sale and draft orders - and those can never carry the buyer's banner decision. On a workspace with a Shopify store connected, the switch is therefore off by default and the admin panel asks you to confirm before turning it on.
One consequence worth knowing: an order placed by a visitor who refused in your Shopify banner arrives at the server with no consent state rather than an explicit refusal. While the switch is off it is not forwarded to any ad platform, but it is not scrubbed either - the click IDs captured on the landing page stay with that order inside AxiTrace reporting.
7. Microsoft Advertising
Microsoft requires a consent signal for visitors in the European Economic Area, the United Kingdom and
Switzerland, and has enforced it since 5 May 2025. Its UET Conversions API takes the visitor's advertising
consent as adStorageConsent. AxiTrace maps your policy onto it like this:
| The event's consent state | What AxiTrace sends to Microsoft |
|---|---|
| Granted | adStorageConsent: "G" |
| Denied | Nothing at all. The event never leaves AxiTrace, so no denied conversion is sent to Microsoft in any form. |
| No consent state | The field is omitted. Microsoft documents that events arriving without it are processed with the consent state set to granted, so whether such an event reaches Microsoft at all is decided by the forwarding switch, not by this field. |
ID Sync and the browser tag
Microsoft ID Sync ties the AxiTrace visitor id to Microsoft's own MUID cookie, which is a third-party cookie write. With Respect cookie consent on, ID Sync needs marketing consent like everything else, and it needs it before the request is made - there is no anonymous variant. With the switch off, ID Sync and the UET bridge run unrestricted.
Under a TCF consent management platform that reports that GDPR applies, a plain marketing grant is not enough for the Microsoft side effects. AxiTrace additionally requires Microsoft's TCF vendor id 1126, plus the purposes Microsoft names:
- Conversion pushes to your UET tag: purposes 1, 7, 9 and 10. Microsoft states that a missing purpose means the conversion is simply not recorded.
- ID Sync: purposes 1, 3 and 4 - device storage plus personalisation and remarketing, which is what the MUID cookie is for.
A CMP reporting gdprApplies === false is outside the TCF regime, so the marketing grant alone is
enough there, exactly as for every other signal family.
The Microsoft UET bridge for Shopify is a Custom Pixel you paste into your store. The current snippet reads your AxiTrace workspace policy at runtime and, while consent is required, loads Microsoft's UET base code only after the visitor allows marketing - so no Microsoft request is made before the decision. Copy the snippet from Connections → Microsoft Ads once and replace what is in your store; after that, flipping the AxiTrace switch is enough and you never paste it again. The pixel's customer privacy permission stays Not required: the snippet itself decides, which is what lets it push the Consent Mode default before the tag loads.
8. Consent platforms, one by one
Every recipe below ends in the same place: AxiTrace is told that marketing consent is in
place, either by a Consent Mode v2 signal the CMP already emits or by a call to
window.axitraceConsent.grant() from the platform's own accept callback. Hook names come from
each vendor's own documentation; where a vendor does not document something, this guide says so instead of
guessing.
Google requires Consent Mode v2 of any consent platform serving the EEA, so most banners emit it whether
or not they advertise the fact. Turn the workspace switch on, accept the banner, and check
Axitrace.hasConsent() in the console before writing any code. If it returns
true, you are done.
| Platform | Signal AxiTrace reads | Cookie matching? |
|---|---|---|
| Cookiebot | Consent Mode v2 (ad_storage + ad_user_data), or grant() from CookiebotOnAccept |
No. CookieConsent holds an opaque blob, which AxiTrace resolves as unknown. |
| Usercentrics (CMP v3) | Consent Mode v2, or grant() from the UC_CONSENT event |
No. Consent is kept in localStorage, which the cookie adapter cannot read. |
| Acris (Shopware) | Shopware's AxiTrace cookie group, Consent Mode v2, or grant() from a GTM tag |
Possible through the Shopware group cookie. See below. |
| CCM19 | grant() from an embedding, or from the ccm19EmbeddingAccepted event |
No. CCM19's storage is configurable between cookie, localStorage and sessionStorage. |
| Borlabs Cookie 3.x | grant() from the borlabs-cookie-consent-saved event |
No. borlabs-cookie holds a blob and is written on decline too. |
| Complianz (WordPress) | The WP Consent API marketing category, or grant() from cmplz_enable_category |
Yes, with an explicit value: { name: 'cmplz_marketing', value: 'allow' }. |
| OneTrust | grant() from the OneTrustGroupsUpdated event |
No. OptanonConsent is one blob for every group. |
Cookiebot
Cookiebot's categories are necessary, preferences, statistics and
marketing; forwarding conversions to ad platforms is a marketing purpose. If your Cookiebot
setup emits Google Consent Mode v2, AxiTrace already sees the grant and you need no code at all. Otherwise
grant from the accept callback:
window.addEventListener('CookiebotOnAccept', function () {
if (Cookiebot.consent.marketing) {
window.axitraceConsent && window.axitraceConsent.grant();
}
}, false);
Cookiebot also fires CookiebotOnConsentReady, which its documentation describes as firing when
the consent state is ready, whether it was just submitted or loaded from an existing cookie. Either event
works for returning visitors.
consentCookie at CookieConsent
Cookiebot writes that cookie when the visitor declines as well, and its value is the whole choice encoded as a blob. AxiTrace reads such a value as unknown and will never boot on it, so the gate would look broken rather than fail open. Use Consent Mode v2 or the callback above.
Usercentrics
Usercentrics renamed its API between generations. The current Web CMP uses window.__ucCmp
and the UC_CONSENT event; UC_UI is the previous (v2)
namespace. The snippet below is for the current generation. If your site still runs v2, let Google
Consent Mode v2 do the work, or call grant() from wherever you already hook consent.
window.addEventListener('UC_CONSENT', function (event) {
var categories = (event.detail && event.detail.categories) || {};
var accepted = Object.keys(categories).some(function (key) {
return categories[key].name === 'Marketing'
&& categories[key].state === 'ALL_ACCEPTED';
});
if (accepted) {
window.axitraceConsent && window.axitraceConsent.grant();
}
});
Category names are configurable in your Usercentrics admin, so check that 'Marketing' matches
yours. The documented states are ALL_DENIED, SOME_ACCEPTED and
ALL_ACCEPTED. Usercentrics stores consent in localStorage, not a cookie, so the
consentCookie option cannot be used here.
Acris Cookie Consent (Shopware)
Acris does not document a browser JavaScript event for custom scripts. Its documented routes are the Shopware admin and Google Tag Manager. In order of preference:
-
Use Shopware's own AxiTrace cookie group. Acris follows Shopware's core group structure,
so the group our plugin registers should appear in its banner. Accepting it sets
axitrace-enabled, which is a signal AxiTrace reads directly. Check in a private window whether accepting the AxiTrace group starts tracking; if it does, you are done. -
Via Google Tag Manager. Acris pushes a custom event named
acrisCookieStateChangedand exposes each cookie's state as a dataLayer variableacrisCookie.<YourCookieId>. Create a cookie in Settings → Extensions → EU Cookie Policy Pro → Cookies, add a dataLayer variable for it, trigger onacrisCookieStateChanged, and fire a Custom HTML tag containing the one-linegrant()call.
Acris also supports Google Consent Mode v2 and exposes acrisCookie.ad_storage,
acrisCookie.ad_user_data and the other signals to the dataLayer, so on a store where Consent
Mode is configured, AxiTrace may already see the grant with no wiring at all. Verify it rather than assuming.
CCM19
CCM19's own recommendation is to paste third-party code into its Embedding Source Code field rather than hooking events. Create an embedding for AxiTrace in the Ads category and use this as its code:
<script>window.axitraceConsent && window.axitraceConsent.grant();</script>
If you would rather hook the event:
window.addEventListener('ccm19EmbeddingAccepted', function (event) {
if (event.detail && event.detail.name === 'AxiTrace') {
window.axitraceConsent && window.axitraceConsent.grant();
}
});
Use ccm19EmbeddingAccepted, not the older ccm19CookieAccepted, which CCM19's
documentation marks deprecated. The event also re-fires on later page loads for an already-accepted
embedding, which is what you want. CCM19's storage is configurable between cookie, localStorage and
sessionStorage, so do not rely on a ccm_consent cookie existing.
Borlabs Cookie (WordPress)
Borlabs Cookie 2.x used BorlabsCookie.checkCookieConsent(). Version 3 replaced it with
BorlabsCookie.Consents.hasConsent(), and what were called Cookie Groups are now
Service Groups. The snippet below is for 3.x.
window.addEventListener('borlabs-cookie-consent-saved', function () {
if (window.BorlabsCookie.Consents.hasConsentForServiceGroup('marketing')) {
window.axitraceConsent && window.axitraceConsent.grant();
}
});
Confirm your own service-group ID in Borlabs' settings before relying on 'marketing': group IDs
are editable and Borlabs does not publish the defaults in its documentation. If Borlabs also supports the WP
Consent API on your site, the marketing category alone is enough and no snippet is needed.
Complianz (WordPress)
Complianz implements the WordPress Consent API, which AxiTrace reads on its own: a marketing
category set to allow is a grant, and a later deny is a withdrawal. Nothing to
wire. If you want to be explicit, Complianz also dispatches its own events on document,
not window, with the four categories functional,
preferences, statistics and marketing:
document.addEventListener('cmplz_enable_category', function (consentData) {
if (consentData.detail.category === 'marketing') {
window.axitraceConsent && window.axitraceConsent.grant();
}
});
Complianz is also the one platform here where cookie matching is clean, because it writes a separate cookie per category with an explicit value. On a site wired by hand you can therefore configure:
Axitrace.init({
apiUrl: 'https://axi.yourdomain.com',
publicKey: 'pk_live_YOUR_PUBLIC_KEY',
consentCookie: { name: 'cmplz_marketing', value: 'allow' }
});
OneTrust
OneTrust raises OneTrustGroupsUpdated on window, with event.detail as
an array of the currently active group IDs. In a default configuration C0004 is
Targeting / Advertising, but group IDs are editable per tenant, so confirm yours.
window.addEventListener('OneTrustGroupsUpdated', function (event) {
if ((event.detail || []).indexOf('C0004') !== -1) {
window.axitraceConsent && window.axitraceConsent.grant();
}
});
Two things that catch people out on OneTrust: the global is spelled OnetrustActiveGroups with a
lowercase t, and its value is a comma-delimited string with leading and trailing commas
(",C0002,C0004,"), so match on ,C0004, rather than splitting naively. The event
listener above avoids both problems. Do not point consentCookie at
OptanonConsent: it is one blob covering every group, which AxiTrace reads as unknown.
Anything else
The list above is not exhaustive and does not need to be. Whatever your banner is, find where it runs code after the visitor accepts marketing cookies and put one line there:
window.axitraceConsent && window.axitraceConsent.grant();
And one line where it runs code on a withdrawal:
window.axitraceConsent && window.axitraceConsent.revoke();
If your platform emits Google Consent Mode v2 or implements the WordPress Consent API, there is a fair chance AxiTrace already sees both the grant and the withdrawal with no wiring at all.
9. Verifying it works on a cold browser
Do not take a consent gate on trust. Test it in a browser that has never seen your site, because a grant stored from an earlier visit looks exactly like a gate that is not working.
- Open your storefront in a private window so no earlier consent, cookie or cached script is in play.
- Open developer tools before the page loads: the Network tab and Application → Cookies.
-
Load the page and do not answer the banner. You should see:
- a single request to
/sdk-configand no request to/track; - no
vt_vid,vt_sidorvt_uidcookie, and no AxiTrace entry under Local Storage or Session Storage; - no request to
c.bing.com(Microsoft ID Sync).
- a single request to
-
Accept marketing in the banner. Without reloading, you should see a
vt_vidcookie appear and a/trackrequest go out. - Reject in a fresh private window instead. Nothing should be written and nothing sent, for the whole page.
-
Accept, then withdraw in the banner. The AxiTrace cookies should disappear and no further
/trackrequest should go out.
You can also ask the SDK directly in the console: Axitrace.hasConsent() returns
false before and true after. If it stays false after accepting, your
banner is not reaching us - fall back to the one-line API, which always works.
If your site loads its pixels through a tag manager, run the test once more with the tag manager enabled: a consent tool that injects Meta or TikTok late is exactly the case where a gate can look fine and behave differently.
10. Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| The admin panel warns: consent is on but no consent signal has reached AxiTrace | Consent has been required for more than a day, events are arriving, and not one of them says whether the visitor agreed. Nothing is being forwarded. | Update the AxiTrace plugin on your store to the version listed in section 1, or connect your cookie banner to the tracking script with the one-line API. |
| Tracking never starts, even after accepting the banner | No signal is reaching the SDK: the banner emits neither Consent Mode v2 nor an event we listen for, or the configured cookie name is wrong | Add window.axitraceConsent && window.axitraceConsent.grant(); to your banner's accept callback. This always works. |
| Configured a cookie name, still nothing | The cookie holds the CMP's own blob, or a deny value, or the name differs by case | Check the exact name and value in Application → Cookies, then use { name, value } with that exact value. A blob value never grants. |
| Tracking starts before the banner is answered | The switch is off, or the change has not propagated yet | Confirm Respect cookie consent is on for this workspace and wait up to 5 minutes; test again on a cold browser. |
| Nothing is tracked at all, on every browser | The SDK could not read the workspace policy and failed closed, or Do Not Track is being respected for this browser | Check that /sdk-config is reachable from the storefront (an ad blocker or a broken first-party tracking domain will do it), and check the DNT switch. |
| Forwarding to ad platforms stopped after turning consent on | Your events report no consent state, and Forward events that do not report a consent state is off | Update the plugin so the decision is reported, or turn that switch on knowing that only an explicit refusal will block. Your integration log names the reason on every blocked event. |
| Purchases are missing from Facebook or Google Ads but visible in AxiTrace | Working as configured: the event was blocked at the outbound hop, not lost | Open the integration log for that connection. Denied events are never forwarded; unknown-state events follow the switch. |
| Consent works on one page but not another | A page cache is serving a copy rendered for a different visitor | This should not happen: AxiTrace deliberately renders only the policy into the page and decides in the browser. If you see it, tell us - it is a bug on our side. |