Skip to main content

For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/signals/data-sources/existing-analytics/how-it-works/privacy-and-consent.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/signals/llms.txt.

Privacy and consent for events from your existing tool

An adapter sends Snowplow only the fields it maps: the standard fields of each Snowplow event, the typed fields of external_event, and your tool's IDs in external_identity. Traits, user properties and other properties stay in your tool. Some personal data still reaches Snowplow on every approach, such as the IP address, page URLs and the user ID. Review this page with whoever owns privacy for your site before you send production traffic.

What reaches Snowplow​

DataClient-side approachesServer-side approaches
IP address and user agentThe browser's ownWhatever your tool forwards
Page URL, referrer and titleSent, including query stringsSent when your tool includes them
User IDSent unchanged. If it's an email address, the email reaches SnowplowSame
Search termsSent in site_search and external_event.search_termSame
Your tool's cookiesSent to a Collector on the same site as your pages; see Your tool's cookies and a same-site CollectorNot sent
Snowplow cookiesSet by the Snowplow tracker and the CollectorNot set

Identify traits, user properties and any property that doesn't fit a mapped field are never sent. Your tool itself still receives everything it did before.

Your tool's cookies and a same-site Collector​

When your Collector is on the same site as your pages, for example collector.example.com serving www.example.com, the browser sends every first-party cookie for that site with each request to the Collector. That includes your tool's cookies, some of which hold user IDs or traits. You can:

  • Accept it, and agree with your privacy owner how your Collector handles request headers.
  • Put the Collector on a different site from your pages.
  • Send without credentials. Add credentials: 'omit' to the Snowplow tracker's newTracker options. On adapters that post to the Collector directly, such as Amplitude's variant without the tracker, set it on the fetch call:
js
await fetch(COLLECTOR + '/com.snowplowanalytics.snowplow/tp2', {
method: 'POST',
body,
keepalive: true,
// 'omit' keeps ajs_* cookies off a same-site collector.
credentials: 'omit',
headers: { 'content-type': 'application/json; charset=utf-8' },
});

Client-side adapters hook into your tool's library where it sends an event, so they see only what your tool sends. If your tool holds or drops events because of consent, so does the adapter. Server-side adapters run after your tool has accepted an event, so they forward whatever your tool forwards unless you add a check.

Tool and approachFollows your tool's consent?
Adobe Web SDK and AppMeasurement callbacksYes. Events held while consent is pending are sent when it's granted
GA4, GTM tag templatesOnly with the consent settings you give the Snowplow tags in GTM
GA4, page scriptNo: load it only after consent is granted
GA4, server-side GTMOnly with the consent condition
Segment, RudderStack, Amplitude client-sideThe adapter runs on every event your tool processes
PostHog, before_send hookYes
Segment, RudderStack, Amplitude, PostHog and Adobe server-sideThe destination runs on every event your tool ingests

On the Adobe Web SDK, wrap the adapter so a Snowplow problem can't stop the event reaching Adobe:

js
alloy('configure', {
// ...your existing configuration
onBeforeEventSend: function (content) {
try { mirrorXdm(content); } catch (e) {}
},
});

Snowplow's server-side GTM tag has no consent check of its own, so it forwards every event whatever the consent state. If your site uses Google Consent Mode, add a trigger condition so the tag doesn't fire when analytics storage is denied. Without Consent Mode, gtag.js sends no gcs at all, so a condition that requires G111 or G101 blocks every event; gate GA4 itself through your consent management platform instead. GA4 hits carry the Consent Mode state in the gcs query parameter, and only G111 and G101 mean analytics storage is granted.

Create a variable of type Query Parameter (under Request) with Parameter Name gcs, and add a condition to the Snowplow tag's trigger where that variable matches RegEx ^G1[01]1$. Check in Preview that a consent-denied visit sends nothing to your Collector.

Gate the Snowplow tracker too​

On client-side approaches, the Snowplow tracker sets its own cookies whatever your tool's consent state. Gate loading the tracker on the same consent signal your tool uses.

What to check before going live​

Check that none of these reach Snowplow, or agree that they may:

  • User IDs that are emails.
  • Emails or tokens in page URLs, referrers and search terms.
  • Free text in any property you map to an external_event field. On Adobe, check which eVars, props and XDM fields you map.
  • Your tool's cookies at a same-site Collector.
  • IP addresses, if your privacy policy requires them to be truncated. Use your pipeline's IP anonymization if so.

Was this page helpful?