What the 'gcs' parameter means in GA4's Consent Mode

The 'gcs' parameter in GA4's Consent Mode encodes the current state of the user's consent. This article explains what it means

Justus

Justus

owntag Founder

published March 27, 2023

gcs parameter?

The gcs parameter is a parameter that is part of tracking requests sent to Google Analytics 4 as part of GA4’s Consent Mode feature.
It encodes the current state of the user’s consent.

Here’s helpling.de as an example.
Before / without consent:

A screenshot of helpling.de overlayed with a slightly translucent overlay and a consent banner waiting for user consent. Google Chrome Developer tools are opened, showing the 'Network' tab, filtered for 'collect'. The outgoing GA4 request shows a gcs parameter of 'G100'.

After / with consent:

A screenshot of helpling.de without consent overlay showing. Google Chrome Developer tools are opened, showing the 'Network' tab, filtered for 'collect'. The outgoing GA4 request shows a gcs parameter of 'G111'.

What it means

The gcs parameter always begins with “G1” and is followed by two other digits, either 1 or 0. The G1 is a constant that indicates that the parameter is a GA4 consent mode parameter, so the first 1 doesn’t tell us anything.

The second digit indicates whether the user has given consent for the collection of personal data to be used with Google Ads. The third digit indicates whether the user has given consent for the collection of personal data to be used with Google Analytics.

gcs in Server Side GTM

If you’re looking for the parameter in your Server Side GTM, you’ll find it as x-ga-gcs in the Event Data.
That’s also the parameter name you’ll need in order to change the parameter using Server Side GTM Transformations – not gcs.
(Hat tip to Simo Ahava and George Arnaoutoglou for this)

Become a Server Side Tagging Pro with owntag

Take control of your digital data collection with Server Side Tagging and Server Side GTM – easily hosted with owntag.

App screenshot