GA4 Consent Tracking Under UAE and Saudi Data Laws
GA4 consent tracking links your banner to Google Consent Mode v2 so analytics respect each visitor's choice. Learn the UAE and Saudi context, the setup steps and how to test.

GA4 consent tracking is the practice of asking visitors for permission, recording their answer and making Google Analytics 4 behave accordingly. This guide shows how to set up GA4 consent tracking with Google Consent Mode v2 on a UAE or Saudi website, so your measurement respects each visitor’s choice and your team can explain its setup clearly.
This is general information for marketers, not legal advice. Laws, regulations and regulator guidance change, and your duties depend on your sector and data flows, so confirm your approach with qualified counsel in each market. What follows is the technical and operational side that sits next to that legal review.
What GA4 consent tracking is, and what it is not
Good GA4 consent tracking has three parts: a banner or preference centre that collects the choice, a place that stores the choice, and a link between that choice and your Google tags. Google’s own documentation is explicit that consent mode does not provide a consent banner or widget, and that you need your own tool to collect consent from website users.
So GA4 consent tracking is not a single setting inside Analytics. It is a small system that spans your consent platform, Google Tag Manager, the GA4 property and any Google Ads link. If one part is missing, the others cannot make up for it.
Consent Mode v2 in one paragraph
Google Consent Mode v2 is the way your site tells Google tags what each visitor has agreed to. The tags then adjust: they may set cookies, read cookies, or send only limited signals. Everything else in this article builds on that idea, which is why GA4 consent tracking and Consent Mode v2 are usually discussed together.
What GA4 consent tracking cannot do
It cannot decide whether you need consent. That is a legal question that depends on the law, your sector and the data you handle. It also cannot repair a site that sends personal data into Analytics by accident. We cover that under data minimisation below.
The UAE and Saudi laws behind GA4 consent tracking
Most regional teams start from the UAE and Saudi personal data protection laws, then review other markets as needed. For market background, see our pages on the United Arab Emirates and Saudi Arabia. The points below are limited to what official or well-sourced pages confirm.
UAE PDPL and GA4 consent tracking
The UAE government portal describes the Personal Data Protection Law, Federal Decree-Law No. 45 of 2021, as the federal framework for data governance and privacy. According to the UAE portal’s page on data protection laws, it came into force on 2 January 2022 and covers processing carried out wholly or partly through electronic systems, inside or outside the country.
The same page says processing personal data without the owner’s consent is prohibited, with exceptions such as protecting a public interest or carrying out legal procedures and rights. It also names the UAE Data Office as the federal regulator, and notes that data owners can request corrections and can restrict or stop processing of their data.
For GA4 consent tracking, the practical reading is simple: website analytics processed electronically fall within the kind of activity the law describes, so you should be able to show how consent is asked for, recorded and honoured. Whether a particular exception applies to your analytics is a question for counsel.
Saudi PDPL and GA4 consent tracking
The Saudi Personal Data Protection Law is overseen by the Saudi Data and AI Authority (SDAIA). The IAPP reports that it became fully enforceable on 14 September 2024 and applies to entities inside or outside the Kingdom that process personal data of Saudi citizens or residents.
A legal briefing from CMS notes that SDAIA published supporting rules and guidelines before enforcement, including a guideline on developing privacy policies, a guideline on determining the minimum personal data needed, and an amended regulation on transfers outside the Kingdom. The same briefing summarises the consent expectations as stated purposes, collection limited to the necessary minimum, and the right to withdraw consent at any time.
We could not open SDAIA’s own pages from our research environment while writing this, so we have limited the Saudi points to those two secondary sources. Check SDAIA’s official publications for the current text before you rely on any detail.
Free zones and other GCC markets
The UAE portal page separately points to the DIFC Data Protection Law, so businesses in free zones should check which regime applies to them. Other GCC markets, including Qatar, Bahrain, Oman and Kuwait, may have their own rules, so check each one you serve. If one site serves the whole region, many teams design GA4 consent tracking to meet the strictest requirement that applies, rather than maintaining a different behaviour for each country.
UAE PDPL and Saudi PDPL side by side
The table below lists only points confirmed by the pages we opened. It is a reading aid for GA4 consent tracking, not a legal comparison.
| Point | UAE PDPL | Saudi PDPL |
|---|---|---|
| Instrument | Federal Decree-Law No. 45 of 2021 | Personal Data Protection Law, with SDAIA rules and guidelines |
| Regulator named in our sources | UAE Data Office | Saudi Data and AI Authority (SDAIA) |
| Key date in our sources | In force from 2 January 2022 | Fully enforceable from 14 September 2024 |
| Reach beyond borders | Processing inside or outside the country | Entities inside or outside the Kingdom handling data of citizens or residents |
| Consent theme | Processing without the owner’s consent is prohibited, with listed exceptions | Stated purposes, minimum necessary collection, right to withdraw |
Notice that the same two ideas run through both columns: be clear about purpose, and be able to show the visitor’s choice. A single, well-built GA4 consent tracking setup can serve both the UAE PDPL and the Saudi PDPL, but only counsel can confirm that for your business.
Why GA4 consent tracking matters even without names or emails
GA4 does not need a name or an email address to touch personal data thinking. It uses cookies and identifiers to recognise returning browsers, and it can be linked to Google Ads for audiences and conversions. Those advertising uses are the reason Consent Mode v2 added two extra signals, covered next, and why GA4 consent tracking now involves advertising settings too.
This is also why a team that “only does analytics” still needs GA4 consent tracking. The legal tests in both countries turn on whether data relates to an identifiable person and what you do with it, not on which tool you use.
If you are planning event-level measurement for a shop, our webinar on GA4 for GCC e-commerce pairs well with this guide.
How Google Consent Mode v2 works
Google’s developer documentation lists four consent types. Consent Mode v2 added ad_user_data and ad_personalization alongside ad_storage and analytics_storage. Each one controls a different behaviour, and your banner needs to set all four.
The four consent signals in GA4 consent tracking
- analytics_storage: whether Analytics may store and read cookies for measurement.
- ad_storage: whether advertising cookies may be set. When denied, new advertising cookies are not set.
- ad_user_data: whether user data may be sent to Google for advertising purposes.
- ad_personalization: whether personalised advertising, such as remarketing, may be used.
Default first, then update
Google’s guide says to call the default consent command on every page before any config or event command, and to call the update command as soon as the visitor interacts with your controls. It also says consent mode does not save choices: you must persist them yourself, for example in a first-party cookie or local storage, and re-apply them on later pages.
A wait_for_update value, in milliseconds, gives an asynchronously loaded banner time to send its update before tags fire. Regional settings let you set different defaults for different places, using ISO 3166-2 region codes, with the most specific region winning.
Basic or advanced GA4 consent tracking: the choice that changes your data
Google Analytics Help describes two implementations. In basic mode, Google tags are blocked until the visitor consents. In advanced mode, tags load first and send cookieless pings when consent is declined, which supports behavioural and conversion modelling. The table sets them side by side.
| Question | Basic mode | Advanced mode |
|---|---|---|
| When do Google tags load? | Only after the visitor consents | On page load, with defaults set to denied |
| What happens if a visitor declines? | No data reaches Google | Cookieless pings are sent |
| Modelling for missing data | No modelled data for GA4 | Enables behavioural and conversion modelling |
| Questions for counsel | Fewer, easier to explain | Whether cookieless pings fit your obligations |
The Analytics page says that when a consent tool uses the IAB TCF and visitors deny consent, GA4 cannot model the missing data. It also says pings are not stored with IP addresses. Neither point replaces a legal opinion on advanced mode, which is exactly the kind of decision to take to counsel before you choose.
Seven steps to set up GA4 consent tracking
This sequence for GA4 consent tracking works for most Gulf sites that already use Google Tag Manager. Follow it in order, and test after each stage.
- Inventory every tag. List GA4, Google Ads, Meta, Snap, TikTok and any other pixel, and note what each collects and why.
- Choose a consent tool. Google recommends using a consent management platform or your CMS to collect consent. Pick one that works in Arabic and English, right to left and left to right.
- Set defaults early. In Google Tag Manager, use the Consent Initialization trigger, which fires before all other triggers, for the tag that sets default consent.
- Send updates on interaction. Make sure the banner calls the update command the moment a choice is made, and stores that choice for later pages.
- Add consent checks to tags. Use the consent settings on each tag. Google’s built-in tags adapt to consent state, while other tags may need additional consent checks set by you.
- Test in Tag Assistant. Use consent debugging to confirm each state: nothing fires before a choice where you have chosen to block, and each signal changes when the visitor acts.
- Document the setup. Save the banner wording, the default values, the tag list and the test results with dates.
Setting GA4 consent tracking up in Google Tag Manager
The Tag Manager help page describes a consent overview that groups tags into “consent not configured” and “consent configured”, which is a quick way to find gaps. Enable it under container settings, then review every tag that is not configured.
It also notes that Google’s own tags change behaviour with consent state, while third-party templates may behave differently. Treat every non-Google tag as unprotected until you have tested it. You can read the details in the Tag Manager consent help page.
Designing a banner that supports GA4 consent tracking
- Offer accept and reject choices that are equally easy to find and use.
- Describe analytics and advertising in plain language, in the language of the page.
- Let visitors change their mind later through a visible link.
- Check that the banner works on phones, since many visitors will see the banner on a phone.
The Saudi guidance summarised by CMS also points to a withdrawal right, so make withdrawing consent as easy as giving it.
A worked example: a Dubai retailer with a Riyadh audience
Consider a hypothetical retailer based in Dubai that sells to both the UAE and Saudi Arabia from one bilingual site. It runs GA4, Google Ads and a Meta pixel through Tag Manager. We use this example only to show the decisions, not to describe any real business.
The team sets all four consent signals to denied by default, loads the banner in the visitor’s page language, and stores the choice in a first-party cookie. It applies one consent logic to every tag, because splitting behaviour by country would double the testing. It runs advanced mode only after counsel has reviewed cookieless pings, and it annotates the launch date in GA4.
Three weeks later the team compares consent rates for Arabic and English pages. Arabic mobile visitors accept far less often than English desktop visitors, so the team rewrites the Arabic banner text in plainer words and checks the layout on small screens. That kind of iteration is the real value of GA4 consent tracking: it turns a legal chore into something you can measure and improve.
Wording for GA4 cookie consent
Good GA4 cookie consent wording is short, specific and honest. Name the purpose (measuring how the site is used, or personalising ads), say who receives the data, and link to the full notice. Avoid vague phrases such as “to improve your experience” when you mean advertising.
- Write the Arabic text natively, not as a literal translation, and read it aloud before launch.
- Keep category names the same across the banner, the notice and your tag documentation.
- Give each category its own toggle when you use both analytics and advertising.
- Do not pre-tick optional categories.
Treat GA4 cookie consent as content as well as code. The best technical setup fails if visitors cannot understand what they are choosing, and a clear banner also supports your trust signals, a theme we cover in our guide to E-E-A-T for regional publishers.
Data minimisation inside GA4
Consent covers what you may collect, and GA4 consent tracking only works well when minimisation comes first. Minimisation covers what you should never send at all. Google’s policy says no data passed to Google should be something it could recognise as personally identifiable. The Analytics PII policy lists emails, names, personal phone numbers and fine location among the examples, and says common leaks come from page URLs, titles, form fields and search boxes.
- Remove email addresses and names from URLs and event parameters, including thank-you page URLs.
- Check internal search terms and campaign parameters for personal data.
- Use the data redaction settings the policy page describes for web streams.
- Limit who can access the property and what they can export.
Retention and signals
GA4 offers event data retention of 2 months or 14 months on standard properties, according to the GA4 data retention help page. For GA4 consent tracking records, choose the shortest period that still serves your reporting, and record that choice in your notes.
If you link GA4 to Google Ads, remember that advertising uses are governed by the ad_user_data and ad_personalization signals. Google Ads Help adds that consent mode feeds conversion modelling, and that advanced mode uses an advertiser-specific model. For how that plays out in paid search, read our guide to Google Ads Saudi campaigns.
Privacy notices, transfers and vendor checks
A banner is only the front door. Your privacy notice should explain, in Arabic and English, which analytics and advertising tools you use, why, and how a visitor can change their choice. Our own privacy policy is an example of a notice kept short and plain.
Cross-border transfers
Check where Google processes your GA4 data, because both countries have transfer rules. The UAE page mentions requirements for transferring personal data across borders, and the CMS briefing describes SDAIA’s amended transfer regulation, standard contractual clauses and binding common rules. How those apply to your use of GA4 is a question for counsel, so ask it early and keep the answer with your documentation.
One banner for every tag
Meta, Snap, TikTok and other pixels raise the same questions as GA4 consent tracking does. Put them behind the same consent logic so one banner controls every tag. Teams running paid social will find related planning notes in our piece on Snapchat and TikTok ads for Gulf Gen Z.
Common GA4 consent tracking mistakes
- Hard-coding GA4 in page templates, which breaks GA4 consent tracking entirely,, outside the consent setup, so it fires before any choice.
- A banner with only an accept button, or a reject option that is hard to find.
- Arabic pages with an English-only banner, or a banner that breaks right-to-left layout.
- Copying a European template without checking local requirements.
- Setting defaults after tags have already loaded, so the first page view is wrong.
- Forgetting that consent mode does not remember choices, so returning visitors are asked again or ignored.
- Reading a fall in reported sessions after launch as a fault, instead of explaining the change to stakeholders.
The last mistake is the most common in practice. Visitors who decline are no longer counted in the same way, so numbers shift on the day the banner goes live. Annotate the change in GA4 so later readers know why.
How to measure GA4 consent tracking success
Success in GA4 consent tracking is not a bigger number. It is a setup that behaves as designed and can be shown to do so. Track these in Tag Assistant, Tag Manager and GA4 itself.
- Tag behaviour: for GA4 consent tracking, the share of tags with consent configured in the Tag Manager consent overview, aiming for every tag.
- State accuracy: test sessions showing the correct default, update and stored value on each page.
- Consent rate by language and device: exported from your consent tool, to spot a banner that underperforms in Arabic or on mobile.
- Data shape: sessions and key events before and after launch, with an annotation, so changes are explained.
- Modelling visibility: Google Ads Help says consent mode impact may appear after at least 7 full days of implementation, so check then.
- PII checks: a monthly scan of page URLs and event parameters for emails and names.
For wider measurement thinking, our guide to measuring AI search visibility shows how to define metrics before you trust them.
Your next step for GA4 consent tracking
Start with an hour’s audit. Open Tag Manager, turn on the consent overview, list every tag that is not configured, and load your site in Tag Assistant with consent denied. You will see within minutes whether your GA4 consent tracking works or only looks as though it does.
Then book the legal review of your GA4 consent tracking with counsel, bring your tag list and your banner wording, and agree which mode to run. Revisit the setup whenever regulations, your tools or your tracking change. For the wider analytics picture, browse our analytics articles and the GA4 tag page.
Once consent is in place, the next questions are how to route data and how to credit channels. Our guides to server-side tagging and first-party data and GA4 attribution models in the GCC.
Frequently asked questions
What is GA4 consent tracking?
GA4 consent tracking means collecting a visitor's consent choice, storing it and passing it to Google tags so Google Analytics 4 behaves accordingly. It usually combines a consent banner, Google Tag Manager and Google Consent Mode v2. The banner collects consent, and consent mode tells the tags what the visitor allowed.
Do I need a cookie banner for a UAE or Saudi website?
Many businesses use one to meet transparency and consent expectations, especially for analytics and advertising cookies. The UAE government portal says processing personal data without the owner's consent is prohibited, with exceptions. Whether a banner is strictly required for your site is a question for qualified legal counsel.
Does Google Consent Mode v2 provide the consent banner?
No. Google's documentation says consent mode does not provide a consent banner or widget. You need a consent management platform, a custom banner or your CMS to collect consent. Consent mode then passes the visitor's choice to Google tags so they adjust their behaviour.
Should I use basic or advanced consent mode?
In basic mode, Google tags are blocked until the visitor consents. In advanced mode, tags load first and send cookieless pings when consent is declined, which supports modelling in GA4. Basic is simpler to explain. Discuss advanced mode with counsel before choosing, because it changes what is sent.
Will GA4 consent tracking reduce my reported data?
Usually it changes your numbers, because visitors who decline are no longer measured in the same way. Advanced mode can help GA4 model part of the gap, but reports will differ from before. Add an annotation on the launch date so colleagues understand the change.
Is the Saudi PDPL different from the UAE PDPL for analytics?
The two laws use different wording and regulators, but both stress clear purposes and the individual's choice. Our sources describe the Saudi law as fully enforceable from 14 September 2024 and the UAE law as in force from 2 January 2022. Counsel should confirm how each applies to your tracking.







