On this page
What this issue is
Server-side tagging means your site sends tracking data to a server container (for example server-side Google Tag Manager) that you host. That container then forwards the data to GA4, Google Ads, Meta and others. The visitor's consent choice lives in the browser, in your consent banner (CMP). The server cannot see it unless you send it along.
Why it costs you leads or sales
The most direct cost is risk: you process data from people who said no. That can mean complaints, fines, or ad accounts being limited. There is also a data quality cost. Platforms that receive signals without a valid consent state may discard them or model them in ways you did not plan for, so your reported conversions and your audiences get less reliable.
- Visitor rejects cookiesCMP stores the choice in the browser
- Browser sends eventRequest has no consent parameters
- Server containerTreats the event as allowed
- Ad platformsReceive data for a visitor who said no
The visitor rejects in the browser, but the server container never learns it.
The browser records the choice, but the server tags run anyway.
How to check if your site has it
You can test this by hand in about ten minutes. Use a private window so old cookies do not interfere.
Open a private window and reject all
Load your site and click Reject (or close the banner without accepting) in your CMP.
Open DevTools, Network tab
Filter by the domain of your server container, such as your sGTM subdomain. Reload and click around, then submit a test form.
Inspect the requests
For Google tags, look at the gcs and gcd parameters on the request. A denied state should show in gcs (for example G100) rather than granted (G111).
Check the server preview
In server-side GTM, open Preview, repeat the test and click each incoming request. Check which tags fired and what consent state they saw.
Check the outgoing requests
In the preview's Request tab for tags like Meta CAPI, confirm nothing was sent when consent was denied.
| Signal | Healthy | Problem |
|---|---|---|
| gcs on browser request | Shows denied (G100 style) | Missing or shows granted |
| Server tags fired | Only consent-exempt ones, or none | Ad and marketing tags fire |
| Meta CAPI request | Not sent | Sent with user data |
| Cookies set by server | None for marketing | Marketing cookies set |
How to fix it
There are two parts. First, make the browser pass consent to the server. Second, make each server tag respect it. Do both, because one without the other leaves a gap.
Set the consent default before tags load
Your CMP or a tag firing on Consent Initialization must set default consent (denied for regions that require opt-in) before any Google tag runs.
Send consent update on choice
When the visitor accepts or rejects, the CMP must call a consent update so the web tags get the new state.
Make sure the web tag sends to your server
In the web GTM container, the GA4 tag should use your server container URL (Server container URL in the Google tag settings). Google tags then add gcs and gcd to the request.
Turn on consent checks in server tags
In server GTM, open each tag, go to Advanced settings, Consent settings, and require the relevant consent types such as ad_storage, ad_user_data and analytics_storage. Google tags can read these from the incoming request.
Handle non-Google tags yourself
For Meta CAPI and similar tags, add a trigger condition that checks consent in the event data. Pass a consent field from the browser in the event payload and use it in the trigger.
Stop server-set cookies when denied
Do not set marketing identifiers from the server unless consent allows it.
Web container
Use a CMP template that supports Consent Mode, set defaults on Consent Initialization - All Pages, and set built-in consent checks on each tag.
Server container
Open each tag, Advanced settings, Consent settings, and choose Require additional consent for tag to fire. Add the types it needs.
Use a consent plugin that supports Consent Mode
Check your CMP plugin's settings for Google Consent Mode and make sure it is enabled. The exact menu name depends on the plugin.
Do not add a second hard-coded tag
Remove any theme or plugin snippet that sends events directly to the server and skips the CMP.
Check Customer Privacy settings
In Settings, Customer privacy, set your regions and banner. Pixels and apps added through Customer events respect the privacy API.
Review server-side apps
If an app sends events from Shopify's servers, check in its settings whether it reads customer consent.
Add consent to the payload
Read the CMP's state and include it in every event you post to the server, then reject it server-side if it is missing.
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
ad_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied',
analytics_storage: 'denied',
wait_for_update: 500
});
// Call this from your CMP when the visitor accepts
function onAccept() {
gtag('consent', 'update', {
ad_storage: 'granted',
ad_user_data: 'granted',
ad_personalization: 'granted',
analytics_storage: 'granted'
});
}Before
- Browser sends events with no consent state
- Server tags fire for every request
- Rejected visitors reach Meta and Google Ads
After
- Consent state travels with each event
- Server tags require the right consent types
- Rejected visitors are not forwarded
How to confirm it's fixed
- After Reject, requests to the server carry a denied consent state
- Server preview shows ad tags blocked, with the consent reason
- No Meta CAPI or similar request is sent after Reject
- After Accept, the same tags fire and conversions appear in the platforms
- No marketing cookies are set by the server after Reject
- Test both a new visit and a returning visitor with a saved choice
How to prevent it happening again
- Add a consent check to every new server tag before publishing
- Keep a short list of tags and the consent types each requires
- Rerun the reject test after CMP, theme or GTM changes
- Use server preview before publishing container versions
- Review any app or plugin that sends events from its own servers
How FunnelGuard handles this
FunnelGuard does not check this yet. Testing whether a server container respects a rejected choice is a possible future check, not something the product does today.
What FunnelGuard does cover nearby: it runs your real journeys, such as lead forms and checkouts, on a schedule and checks that tracking hits reach platforms like GA4, Google Ads and Meta, and that test leads arrive. That helps you notice if a consent fix accidentally blocks tags for everyone. It does not tell you whether rejected visitors are being tracked.
Questions people ask
Why are my server-side tags firing after I reject cookies?
Usually the browser never sends the consent state to your server container, or the server tags have no consent requirement. The server then treats every request as allowed. Fix it by passing consent with each event and adding consent settings to each server tag.
Does server-side GTM respect Consent Mode automatically?
Only partly. Google tags in server GTM can read the consent state from the gcs and gcd parameters sent by the browser. You still need to set consent requirements on the tags, and non-Google tags such as Meta CAPI need your own conditions.
How do I pass consent to a server-side container?
Set Consent Mode defaults and updates in the browser, and send events to your server container using the Google tag. The request carries consent parameters. For custom events, add a consent field to the payload and check it in a trigger.
What do gcs and gcd mean in a server-side request?
They are parameters Google tags add to requests to describe consent state. The gcs value shows the current ad_storage and analytics_storage choice, for example G100 for denied. The gcd value carries more detail on defaults and updates.
Does Meta Conversions API need consent?
It sends personal data from your server, so you should only send it where the visitor has agreed, if your rules require consent. Meta CAPI does not read your banner on its own. Add a consent condition to the server tag yourself.
How can I test if server-side tracking respects consent?
Reject cookies in a private window, then watch the Network tab and server GTM Preview while you browse and submit a form. Confirm that ad tags do not fire and nothing is forwarded to ad platforms. Repeat after Accept to confirm tags still work.
Can FunnelGuard detect server-side tags ignoring consent?
Not yet. It is a possible future check. FunnelGuard does check that your journeys and tracking hits work on a schedule, but you need a manual test to see how rejected visitors are handled.
Related issues
- TRK-283Tags still fire after visitor rejectsFix guide
- TRK-284Consent Mode v2 not implemented (no gcs/gcd)Fix guide
- TRK-288Consent update never sent after AcceptFix guide
- TRK-282Consent banner shown but tags fire before any choiceFix guide
- TRK-303Cookies set before consent (_ga, _fbp)Fix guide
- TRK-298CMP categorises analytics tag wrongly (necessary vs marketing)Fix guide