Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Server-side tags ignoring consent: how to find and fix it

TRK-310High impactCould addBy FunnelGuardPublished Updated
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.

Where consent gets lost
  1. Visitor rejects cookiesCMP stores the choice in the browser
  2. Browser sends eventRequest has no consent parameters
  3. Server containerTreats the event as allowed
  4. Ad platformsReceive data for a visitor who said no

The visitor rejects in the browser, but the server container never learns it.

Consent choice not reaching the server

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.

Manual test
  1. Open a private window and reject all

    Load your site and click Reject (or close the banner without accepting) in your CMP.

  2. 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.

  3. 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).

  4. 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.

  5. Check the outgoing requests

    In the preview's Request tab for tags like Meta CAPI, confirm nothing was sent when consent was denied.

What to look for after rejecting
SignalHealthyProblem
gcs on browser requestShows denied (G100 style)Missing or shows granted
Server tags firedOnly consent-exempt ones, or noneAd and marketing tags fire
Meta CAPI requestNot sentSent with user data
Cookies set by serverNone for marketingMarketing 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.

Fix in order
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. Stop server-set cookies when denied

    Do not set marketing identifiers from the server unless consent allows it.

Platform notes
  1. 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.

  2. Server container

    Open each tag, Advanced settings, Consent settings, and choose Require additional consent for tag to fire. Add the types it needs.

Default denied, then update on choice (Google Consent Mode)javascript
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'
  });
}
Server tag behaviour

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

Confirmation checks
  • 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

Habits that keep it fixed
  • 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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.