GDPR and the GA4 BigQuery export: where data goes, who accesses it, for how long
The GA4 BigQuery export turns GDPR questions into three architecture facts: region, access roles, and table expiration. On Google's public sample, every January 2021 event carries a user_pseudo_id, and 58.69% carry a city. This checklist extends our guide to trusting your GA4 numbers and stops where your DPO's assessment begins.
What does the GA4 export contain, from a GDPR point of view?
The GA4 BigQuery export holds one row per event, keyed by a pseudonymous browser identifier. It can also hold a user ID that you send, and location fields derived from the IP address.
A pseudonymous identifier is a value that singles out a browser or an app instance without naming a person, such as user_pseudo_id, so that events can be linked together while linking them to an individual requires information held elsewhere.
Google's schema describes user_pseudo_id as an identifier assigned at the first visit. It describes user_id as the unique ID assigned to a user, set by your own tagging. The geo fields, from country to city, are "based on IP address". The schema has no field for the IP address itself. The privacy_info record stores the consent state of each event. How those values behave when a visitor declines is covered in Consent Mode v2: what the BigQuery export sees, and what it doesn't.
The first document your DPO needs is an inventory: which of these fields are filled, and how often. One query gives it.
SELECT
COUNT(*) AS events,
COUNTIF(user_pseudo_id IS NOT NULL) AS events_with_pseudo_id,
COUNT(DISTINCT user_pseudo_id) AS distinct_pseudo_ids,
COUNTIF(user_id IS NOT NULL) AS events_with_user_id,
COUNTIF(geo.city != '(not set)') AS events_with_city,
COUNT(DISTINCT IF(geo.city != '(not set)', geo.city, NULL)) AS distinct_cities,
COUNTIF(privacy_info.analytics_storage IS NOT NULL) AS events_with_consent_value
FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20210101' AND '20210131'
| Field checked | January 2021 |
|---|---|
| Events | 1,210,147 |
Events with a user_pseudo_id | 1,210,147 (100%) |
Distinct user_pseudo_id values | 94,790 |
Events with a user_id | 0 |
Events with a named geo.city | 710,253 (58.69%, rounded to two decimals) |
| Distinct named cities | 631 |
Events with a privacy_info.analytics_storage value | 0 |
Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).
The sample is obfuscated and predates consent mode, so these shares describe the method only. On your export, a site that sends a login ID fills user_id. Rerun the query before writing the register. Whether each field is personal data is your DPO's assessment.
Where are the GA4 export tables created?
GA4 export tables are created in the location you select when linking a property to BigQuery. Nothing moves from that location unless a job copies it elsewhere.
A dataset location is the Google Cloud region or multi-region chosen when a BigQuery dataset is created, which fixes where its tables are stored, and which changes only by recreating or replicating the dataset.
Google's setup guide adds two constraints. The location option disappears if the project already holds a dataset for the property. Changing region later means deleting the link, recreating the dataset in the new location, and linking again. Google warns that this can leave a gap in your data. Cross-region dataset replication is the alternative it names.
The region is therefore a day-one decision, written in your register with its date. The export itself is only the first copy. Every downstream dataset, scheduled transfer, or extract has its own location to check. The other choices made at linking time, daily or streaming export among them, are in Enabling the GA4 BigQuery export: the settings that matter.
How long does the export keep data, and how is it deleted?
The GA4 export keeps every table until you set an expiration or delete it. GA4's own data retention setting governs the property, not the tables in your project.
BigQuery offers a default table expiration on each dataset. It applies to tables created after you set it. Tables that already exist keep their original setting. The export creates one events_YYYYMMDD table per day, so each new table inherits the default. Older tables need their own expiration or an explicit deletion. The dataset's default partition expiration does not help: the export shards tables by day rather than partitioning them.
Erasing one person follows the same logic. Google documents a user-deletion request for a GA4 property. It accepts a user ID, a client ID, an app instance ID, or one email or phone number. Its documentation does not mention tables already exported. Erasure in BigQuery is therefore a DELETE keyed on user_pseudo_id or user_id. It runs once per daily table, scripted over the date range. Any downstream table that copied the identifier needs the same treatment.
Access and portability requests use the same key. A SELECT on the identifier returns every event of that browser, ready to export for the person. Which requests apply, and within which delay, is your DPO's decision.
| Setting | What it governs | Who sets it |
|---|---|---|
| GA4 data retention | Event data inside the GA4 property | GA4 property editor |
| Default table expiration | New tables in the export dataset | BigQuery dataset owner |
| Table expiration | One existing table | BigQuery dataset owner |
DELETE on daily tables | One person's rows, already exported | Whoever holds write access |
Who reads the export, with which identity, and where is it logged?
The export is read by the identities holding a BigQuery role on its dataset or on the project. No one else reads the tables.
The inventory therefore starts in IAM. List every principal with a role, at project level and at dataset level. A role on the project reaches every dataset, including the export. A role granted on one dataset reaches that dataset only. External vendors should hold dataset-level roles, through an identity dedicated to your project. A service account without a downloaded key removes the risk of a leaked credential file.
Logging is the second half. Google states that Admin Activity audit logs are on by default and cannot be turned off. They record role changes and configuration writes. Data Access audit logs are off by default for most services, with exceptions for some BigQuery services. Check in your project which BigQuery reads are logged, and how long logs are kept. Your DPO will ask for that retention period too.
A clean answer fits in one line per identity: who, which role, on which dataset, logged where. The full list of questions your security team adds is in IT security review: what IT asks before saying yes.
Which processors touch the export, and which DPA covers them?
Every organization that processes the export's tables on your behalf belongs in your register of processors. Google appears twice, once for GA4 and once for Google Cloud.
A data processor is an organization that processes personal data on behalf of the controller, under its documented instructions and a contract meeting Article 28 of the GDPR, without deciding the purposes of the processing itself.
| Party | What it touches | Document to file |
|---|---|---|
| Google, as GA4 provider | Collection and processing in the property | Google's data processing terms for the product |
| Google, as Google Cloud provider | Storage and queries in BigQuery | Google Cloud's data processing terms |
| Vendor or agency with a role on the dataset | Reads, writes, and compute on the tables | DPA naming its sub-processors and regions |
| Microsoft, if Power BI hosts a model | The data loaded into the semantic model | Your Microsoft agreement; content depends on identifiers loaded |
Each line needs three facts: the processing region, the sub-processors, and the date of the signed document. The test is practical. A party holding an IAM role on the export dataset can read identifiers. A party that only receives aggregates without identifiers holds a different kind of data. That difference may change your DPO's assessment of the semantic model. Which roles apply, and which terms suffice, stays a decision for your DPO.
The checklist to hand to your DPO
Eight questions cover the GDPR file of a GA4 BigQuery export. Each answer is a fact you can read in a console or a query.
| # | Question | Where the answer sits |
|---|---|---|
| 1 | In which location is the export dataset, and does any copy leave it? | Dataset details; copy and transfer jobs |
| 2 | Which identifier fields are filled, and how often? | Inventory query: user_pseudo_id, user_id, geo.city |
| 3 | Which expiration applies to new and existing tables? | Dataset default and per-table expiration |
| 4 | Which identities hold which role, at which level? | IAM on the project and on the dataset |
| 5 | Who processes the tables on your behalf, under which DPA? | Register of processors; signed DPAs |
| 6 | How is one person's data found and erased? | SELECT and DELETE scripts keyed on the identifier |
| 7 | How is one person's data exported and handed over? | The same SELECT, written to a file |
| 8 | Which reads and admin actions are logged, and for how long? | Cloud Audit Logs configuration |
Answer each question with a date, because every answer moves. A new vendor adds a role. A login feature fills user_id. A replicated dataset adds a region. Rerun the inventory query each quarter and after each tagging release. Keep the answers in the same file as the register, so your DPO reviews facts rather than intentions.
Three answers deserve extra care. The list of identities with a project role can include forgotten service accounts. Downstream copies of the export can sit with several teams. A deletion script that never ran is a hypothesis. Test it once on a dummy identifier, and record the date and the tables it touched.
FAQ
Is user_pseudo_id personal data under the GDPR?
Whether user_pseudo_id is personal data is an assessment your DPO makes on your setup. The facts it needs are technical. The identifier singles out a browser across visits. It can be combined with user_id, city, and device fields in the same row. It can be removed from aggregated tables without losing counts by channel, market, or day.
Does deleting a user in GA4 remove them from BigQuery?
Google's documentation for the user-deletion request describes a request on the GA4 property. It does not mention tables already exported to BigQuery. Those tables sit in your project, under your control. Removing a person takes a DELETE on each daily table, keyed on user_pseudo_id or user_id. Downstream tables that copied the identifier need the same.
Does the GA4 BigQuery export contain IP addresses?
No, the GA4 BigQuery export contains no IP address: Google's export schema has no field for it. It does contain location fields derived from the IP address: continent, country, region, metro, and city. On the public sample, 58.69% of January 2021 events carry a named city.
Is there a maximum retention period for the GA4 export?
BigQuery imposes no maximum: exported tables stay until they expire or someone deletes them. The duration is your decision, documented in your register and checked by your DPO. Set a default table expiration on the export dataset. Then handle older tables, which keep their original setting.
The other trust questions, from consent to reconciliation, are in Trusting your GA4 numbers: consent, reconciliation, bots, and tagging.
Want these eight answers checked on your own project with your security team? Request an architecture review.
Sources
- BigQuery Export schema (opens in a new tab) - Google, consulted 2026-10-15
- Set up BigQuery Export (opens in a new tab) - Google, consulted 2026-10-15
- Method: properties.submitUserDeletion (opens in a new tab) - Google for Developers, page updated 2026-04-14, consulted 2026-10-15
- Update dataset properties (opens in a new tab) - Google Cloud, page updated 2026-10-13, consulted 2026-10-15
- Enable Data Access audit logs (opens in a new tab) - Google Cloud, page updated 2026-10-13, consulted 2026-10-15
- Regulation (EU) 2016/679 (GDPR), Article 28 (opens in a new tab) - EUR-Lex, consulted 2026-10-15