Privacy, Consent and Data Quality
Learn how consent rules affect analytics, what personal data must never be sent to tools, and how to spot spikes, gaps and other data quality problems.
Welcome back!
Step 1 of 13Learn
The email addresses hiding in the reports
A travel agency's analyst was reviewing the Pages and screens report when she noticed something alarming: hundreds of page addresses ended with ?email=jane.doe@example.com. The booking form was sending customers' email addresses in the URL of the confirmation page, and GA4 was dutifully recording every one.
Google's terms prohibit sending personally identifiable information (PII), such as names, email addresses and phone numbers, to Google Analytics. Beyond the terms, it's a privacy risk and, in many places, a legal one. The fix took a developer an afternoon: change the form so personal details are never placed in URLs, and remove the affected data.
Privacy is now a core part of analytics, for three reasons:
- Laws such as the EU's GDPR and ePrivacy rules, the UK's equivalents and various US state laws (California's among the best known) regulate how personal data is collected and used. Cookie identifiers and IP addresses can count as personal data.
- Platforms: browsers restrict tracking, and mobile operating systems require apps to ask permission for some tracking.
- Trust: visitors increasingly notice and care how sites treat their data.
Responsible analytics means collecting what you need to improve the site, not everything that's technically possible.
Step 2 of 13Practice · Diagram
How email addresses leaked into analytics
At which step should the problem have been prevented?
Tap the shape that answers the question, then press Check.
- Booking form
The customer enters their email address.
- Email put in URL
Confirmation page: ...?email=jane.doe@example.com
- Tag records URL
GA4 sends the full page address with every page_view.
- PII in reports
Hundreds of addresses visible to everyone with access.
- Fix and clean up
Never put personal data in URLs; remove the affected data.
Step 3 of 13Note
Step 4 of 13Learn
Consent banners and consent mode
In the EU, the UK and several other regions, sites generally need visitors' consent before setting non-essential cookies, which typically include analytics and advertising cookies. That's why so many sites show a consent banner offering choices such as "Accept all," "Reject all" and "Manage preferences." A valid banner makes rejecting as easy as accepting and doesn't set analytics cookies before the visitor chooses.
Google Consent Mode connects a consent banner to Google tags. The banner tells the tags what the visitor allowed, using signals such as analytics_storage and ad_storage (plus ad_user_data and ad_personalization for advertising features). Two broad setups exist:
- Basic: tags don't load at all until the visitor consents. No data is collected from those who decline.
- Advanced: tags load but, without consent, send limited cookieless pings. GA4 can then use behavioral modeling to estimate the activity of non-consenting users, filling some of the gap in reports.
What this means for you as an analyst: after a consent banner goes live, reported users and sessions often drop, sometimes noticeably, without any real change in traffic. Annotate the date, compare trends within the same consent setup, and remember that consent rates themselves can vary by country, device and banner design.
Step 5 of 13Compare
Consent mode: basic vs advanced
| Aspect | Basic | Advanced |
|---|---|---|
| Before a choice | Google tags don't load | Tags load in a limited, cookieless state |
| Visitor declines | Nothing is sent | Cookieless pings without identifiers |
| Modeling of missing users | Limited | GA4 can estimate non-consenting activity |
| Trade-off | Simplest, most conservative | More complete data, needs careful legal review |
Step 6 of 13Practice · Select all that apply
Which of these are signs of a well-designed analytics consent setup in regions that require consent? Select all that apply.
Select all that apply.
Step 7 of 13Learn
Privacy-friendly habits
Beyond consent, a few habits keep analytics both useful and respectful.
Never send PII. Check that URLs, page titles, event parameters and custom dimensions never contain names, emails, phone numbers or account numbers. Search forms are a common leak: if your site search puts the query in the URL, people sometimes type their own email address into it.
Minimize data. Track the events that answer real business questions. Collecting everything "just in case" increases risk and clutter.
Know your tool's defaults. GA4 does not log or store full IP addresses. You can also control Google signals, granular location and device data collection per region, and data retention.
Set retention deliberately. Keep event-level data as long as you need for analysis, such as 14 months for year-over-year comparisons, and no longer than your privacy policy states.
Be transparent. Your privacy policy should explain what analytics you use and why, in plain language.
Consider alternatives where they fit. Some organizations use privacy-focused analytics tools that work without cookies or personal data, accepting less detail in exchange for simpler compliance.
These habits rarely cost useful insight. Knowing that mobile checkout conversion fell 20% doesn't require knowing who any visitor is.
Step 8 of 13Practice · Spot the mistake
An analyst audits a site's tracking. Tap the three findings that are privacy problems needing a fix.
Step 9 of 13Learn
Spotting data quality problems
Bad data leads to bad decisions, so a good analyst checks the data before trusting a surprising result. Watch for these warning signs:
Sudden spikes. Traffic doubles overnight from one country with near-zero engagement time: likely bots or spam. A spike in a single referral source from an unfamiliar domain: same suspicion.
Sudden drops to near zero. Often a tag that disappeared during a website update, a broken GTM container or a consent setting that blocks everything.
Duplicate events. Views per session or key events jumping exactly 2× suggest a double tag or an event firing twice.
"(not set)" and "Unassigned" growing. These labels appear when a dimension's value is missing. A rising share of Unassigned traffic often means inconsistent UTM tagging.
Self-referrals. Your own domain appearing as a referral source usually means some pages are missing the tag or cross-domain tracking isn't configured.
Mismatches with other systems. Small gaps between analytics and your order system are normal; a sudden widening gap means something changed.
The fix is a routine: annotate changes (site launches, tag updates, consent banners, big campaigns) with dates, check key metrics weekly for anomalies, and after any website release, verify in Realtime that page views and key events still arrive.
Step 10 of 13Practice · Chart
Daily sessions: spot the problem
Which day should you check for bots before trusting the numbers?
Tap the point that answers the question, then press Check.
| Item | Sessions |
|---|---|
| Mon | 1,200 |
| Tue | 1,180 |
| Wed | 1,250 |
| Thu | 9,800 |
| Fri | 1,220 |
| Sat | 1,150 |
| Sun | 1,190 |
Step 11 of 13Practice · Match the pairs
Match each data symptom to its most likely cause.
Tap an answer, then tap the place where it belongs (or drag it there).
- Views per session suddenly double overnight
- Traffic drops to almost zero right after a site release
- Thousands of one-second sessions from one city
- Growing "Unassigned" channel traffic
Step 12 of 13Note
Step 13 of 13Practice · What would you do?
What would you do?
On Tuesday, a website's conversion rate drops from 3% to 0.4%, while sessions stay normal. A new checkout design was released Monday night. Sales in the order system look normal. What is the most likely explanation?
Lesson complete!