Sub topic 14
Auditing a property against a privacy policy
This chapter turns the earlier settings chapters into a repeatable audit. You compare a property's actual configuration with a written policy, record the differences, and decide what to change.
It assumes you know the GA4 Admin area, can read the retention, Google signals, and data sharing screens from the earlier chapters, and understand consent requirements such as GDPR.
Start with a written policy
An audit needs something to compare against. Without a policy you only produce a list of settings. Write the policy as concrete values, one per setting, with an owner and a reason.
The table below is an example policy for a European retail site. Your values will differ.
| Area | Setting | Policy value | Reason |
|---|---|---|---|
| Retention | Event data retention | 14 months | Year-over-year Explorations need 13+ months |
| Retention | Reset user data on new activity | Off | Avoid keeping active users' data indefinitely |
| Signals | Google signals | Off | No cross-device remarketing needed yet |
| Identity | Reporting identity | Device-based | Avoid thresholding from signals and demographics |
| Sharing | Google products and services | Off | Not required for current ads setup |
| Sharing | Modeling contributions and business insights | On | Enables benchmarking and conversion modeling |
| Sharing | Technical support | On, only during a support case | Needed for troubleshooting |
| Sharing | Account specialists | Off | No agency or sales contact in use |
| Consent | Default consent state in EEA | Denied | Required before consent is given |
| Deletion | Process for erasure requests | Documented, 30-day target | Legal obligation |
The audit workflow
Work through the same sequence each time, so results can be compared between audits.
Step 1: Collect retention settings
Open Admin, then Data collection and modification, then Data retention. Record two values: the event data retention period and the state of "Reset user data on new activity".
Check these points as you go:
- Retention affects user-level and event-level data used in Explorations. It does not change standard reports, which are built from aggregated data.
- Audiences and segments that depend on a lookback longer than the retention period only see data inside that period. Note any audience whose membership window exceeds your retention value.
- If BigQuery export is linked, the exported tables are not shortened by this setting. Check the BigQuery dataset's own expiration, because that is a separate retention control.
The Admin API lets you check retention across many properties. The script below reads the settings and compares them with the policy. It needs an OAuth access token with the analytics.readonly scope in ACCESS_TOKEN, and the requests package.
import os
import requests
POLICY = {
"eventDataRetention": "FOURTEEN_MONTHS",
"resetUserDataOnNewActivity": False,
}
def audit_retention(property_id: str) -> list[str]:
url = (
"https://analyticsadmin.googleapis.com/v1beta/"
f"properties/{property_id}/dataRetentionSettings"
)
headers = {"Authorization": f"Bearer {os.environ['ACCESS_TOKEN']}"}
response = requests.get(url, headers=headers, timeout=30)
response.raise_for_status()
settings = response.json()
findings = []
for key, expected in POLICY.items():
# The API omits boolean fields that are false, so default to False.
actual = settings.get(key, False if isinstance(expected, bool) else None)
if actual != expected:
findings.append(f"{key}: expected {expected}, found {actual}")
return findings
if __name__ == "__main__":
for finding in audit_retention("123456789") or ["retention matches policy"]:
print(finding)The default for a boolean field that is absent from a JSON response is a common source of false findings. The settings.get call with a fallback handles it here.
Step 2: Collect Google signals and identity settings
Open Admin, then Data collection and modification, then Data collection. Record whether Google signals is on. Then open Reporting identity under Data display and record the active method: blended, observed, or device-based.
Check these points:
- Google signals only applies to users who have ads personalization enabled in their Google account. Turning it on does not collect data from everyone.
- Signals can trigger data thresholding in reports. If an analyst reports missing rows, compare the signals setting with the identity setting before assuming a data collection fault.
- Confirm that the policy's identity choice matches the actual one. Blended and observed identities use user IDs and Google signals where available. Device-based uses only device identifiers.
A change in reporting identity changes how users are counted in reports. Record the date of any change, because user counts before and after it are not directly comparable.
Step 3: Collect data sharing settings
Open Admin, then Account settings, then Data sharing settings. These settings are at account level, so one finding applies to every property in the account. Record each toggle:
- Google products and services
- Modeling contributions and business insights
- Technical support
- Account specialists
Compare each toggle with the policy. The two that auditors most often flag are Google products and services, because it allows data to be used by other Google products, and Account specialists, because it lets Google sales staff access the account.
Step 4: Check consent behavior
Settings in the Admin area do not prove that consent is honored on the site. Check the website itself.
- Open the site in a fresh browser profile with the network tab open.
- Before you interact with the consent banner, check that no
_gacookies are set and that requests to Google collection endpoints, if any, carry a denied consent state. - Accept in the banner and confirm that the state updates.
- Reload and confirm the stored choice persists.
The consent default must be set before the Google tag loads, or the first hit can fire with granted storage.
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
// Must run before the Google tag loads.
gtag('consent', 'default', {
ad_storage: 'denied',
analytics_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied'
});
// Run after the user accepts in your consent banner.
gtag('consent', 'update', {
analytics_storage: 'granted',
ad_storage: 'granted',
ad_user_data: 'granted',
ad_personalization: 'granted'
});Common consent findings:
- The default call comes after the tag in the page source.
- The banner updates only
analytics_storageand leaves the two ad consent signals denied, so ad features never receive data even though the user accepted advertising. - The banner sets consent for one page but does not store it, so the next page starts denied again.
Step 5: Check the deletion process
Open Admin, then Data collection and modification, then Data deletion requests, and review past requests. Deletion requests are not a setting you compare with a value. Instead, test the process.
- Is there a named person responsible for handling erasure requests?
- Can that person find a user in the property, for example through a user ID or client ID?
- Do exported copies exist, such as BigQuery tables, that also need deletion? A GA4 deletion request does not remove data from your own BigQuery dataset.
Record findings
Use one row per finding and classify each by action, so reviewers can see what needs a decision.
| Finding | Setting | Expected | Actual | Class | Action |
|---|---|---|---|---|---|
| F1 | Event data retention | 14 months | 2 months | Drift | Change to 14 months |
| F2 | Reset on new activity | Off | On | Drift | Turn off, note effect on long-lived users |
| F3 | Account specialists | Off | On | Drift | Turn off |
| F4 | Google signals | Off | On | Exception | Marketing owns it, review in 90 days |
Classes keep the audit honest. "Drift" means someone changed a setting without approval or a default was never changed. "Exception" means the difference is intentional and has an owner and a review date. A finding with no class is unfinished.
Make it repeatable
- Run the audit on a schedule, for example every quarter, and after any change in the consent banner, ad platform links, or account access.
- Review the property's change history in Admin (Account change history) to find who changed which setting between audits.
- Store the policy and each audit result in version control or a shared document, with dates.
- Audit every property in an account, because data sharing settings are shared but retention and signals are per property.
Exercise
An analyst reports that a year-over-year Exploration for last November shows no data, but standard reports still show it. The property has event data retention set to 2 months. What does the audit finding look like, and what is the right fix?
Show answer
The finding is retention drift against a policy that needs 13+ months of Exploration history. Explorations use user-level and event-level data, which retention removes after 2 months, while standard reports use aggregated data, which retention does not affect. Change retention to 14 months (the longest option for a standard property) and log the change. The old data stays gone, so for future history, link BigQuery export, since exported tables are not shortened by this setting.
Exercise
During an audit, Google signals is on but your policy says off, and the marketing team says they rely on it for remarketing audiences. How do you record this?
Show answer
Record it as an exception, not drift. Name the owner (marketing), state the reason (cross-device remarketing), and set a review date. Also note the side effect that signals can cause data thresholding, so analysts who see hidden rows know to check the reporting identity setting.