Does Google Analytics Collect PII?

Cody Schneider8 min read

Google has a very clear rule: you are strictly forbidden from collecting any Personally Identifiable Information (PII) within Google Analytics. While this policy is straightforward, PII can easily slip into your reports by accident through web forms, URL structures, or misconfigured event tracking. This article will explain exactly what Google considers PII, how to check if you're collecting it, and the simple steps you can take to prevent it from ever reaching your analytics account.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

What is Personally Identifiable Information (PII)?

Personally Identifiable Information, or PII, is any data that can be used on its own or with other information to identify, contact, or locate a specific individual. Think of it as data that points directly to a single person. In contrast, Google Analytics is designed to track anonymous, aggregated user behavior - trends among groups, not the actions of one identifiable person.

Google's definition is broad and includes any data that could reasonably be linked to an individual. Here are the most common examples of PII that should never be in your Google Analytics account:

  • Full names
  • Email addresses
  • Mailing addresses
  • Phone numbers
  • Social Security numbers or any other government-issued ID numbers
  • Precise location data (distinct from general city or country-level data)
  • Usernames or login credentials

The data Google Analytics is meant to collect includes anonymous information like device type, browser, city, country, age range, gender, language, and the pages a user visits. This data is valuable for understanding audience trends without violating anyone's privacy.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Google's Official Stance and the Consequences

Google takes its PII policy extremely seriously. Their Terms of Service explicitly state that you are prohibited from sending any information to Google that could be used to personally identify an individual. This isn't just a suggestion, it’s a strict condition of using the platform.

The consequences for violating this policy can be severe:

  • Account Termination: Google has the right to - and often will - terminate your Google Analytics account without warning. This means losing all your historical data.
  • Legal and Financial Penalties: Beyond Google’s rules, you could be violating major privacy regulations like Europe's GDPR (General Data Protection Regulation) or California's CCPA (California Consumer Privacy Act). These laws carry a risk of significant fines for mishandling user data.
  • Loss of Trust: A data privacy breach can permanently damage your brand's reputation with customers.

The responsibility for keeping PII out of Google Analytics rests entirely on you, the website owner.

How Does PII Accidentally Get Into Google Analytics?

Most of the time, PII collection isn't intentional. It happens due to common website setups that overlook how data is passed and recorded. Here are the main culprits to watch out for.

1. URL Query Parameters

The single most common source of accidental PII collection is from URL query parameters. This often happens when a visitor submits a form on your site - like a contact form, search bar, or newsletter signup - that uses the GET method. The GET method appends all the form field data directly to the URL, and Google Analytics records the full page URL, including these parameters.

Example: A user fills out a contact form, and after submitting, they are redirected to a "thank you" page with a URL like this:

yourwebsite.com/thank-you?first_name=Jane&last_name=Doe&email=jane.doe@email.com

Google Analytics will log a pageview for this URL, and jane.doe@email.com is now stored as PII in your account, which is a direct violation.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

2. Page Titles and URLs

Sometimes, your Content Management System (CMS) or e-commerce platform might dynamically generate page titles or URL paths that include user information. This is common on profile pages, account dashboards, or order confirmation screens.

Example 1 (Page Title): The title of an order confirmation page might be "Your Order Confirmation for Jane Doe," which would then be recorded in your reports.

Example 2 (URL): A user's public profile page could have a URL structure like yourwebsite.com/users/jane-doe-1234, which contains a name.

3. Custom Dimensions, Events, and User-ID

While extremely useful for deeper analysis, GA4's custom tracking features can be a source of PII if implemented carelessly.

  • Custom Events and Parameters: You might create a custom event to track user registrations and mistakenly configure an event parameter to capture the email field from the form.
  • User-ID: The User-ID feature is meant to track a single user across multiple devices. However, you must use a non-personally identifiable, system-generated ID (like "user-1138"). Using an email address, username, or phone number as a User-ID is a direct violation of terms.

How to Find PII in Your Google Analytics Account

Performing a regular audit is the best way to ensure your account remains compliant. Here’s a step-by-step guide to finding PII in GA4.

1. Audit Your Page URLs and Query Parameters

This is the first and most important place to check.

  1. In GA4, navigate to Reports > Engagement > Pages and screens.
  2. Above the data table, click the dropdown menu that says "Page path and screen class" and select "Page path + query string and screen class" to see the full URLs.
  3. Use the search bar above the table to look for common PII patterns:
  4. Scroll through the list and look for anything that resembles individual user data.

2. Review Your Page Titles

Switch your primary dimension to check for PII in page titles.

  1. In the same Pages and screens report, change the primary dimension dropdown to "Page title and screen name".
  2. Repeat the search process, looking for the "@" symbol and other PII indicators in your page titles. Pay close attention to titles of confirmation pages, thank you pages, and user profile areas.

3. Examine Custom Definitions

Take a look at the custom data you personally configured to send to GA4.

  1. Go to Admin (the gear icon on the bottom left).
  2. In the Property column, click on Custom definitions.
  3. Review both your "Custom dimensions" and "Custom metrics" tabs. Look at the names and descriptions of each. If you see dimensions like "user_email" or "full_name," investigate immediately how that data is being collected and sent.

3 Ways to Stop PII Collection

Once you’ve identified a PII leak (or if you want to be proactive and prevent one), you can implement the following solutions.

1. Modify Your Forms to Use the POST Method

For your website developers: Ensure any form that collects user data uses the POST method instead of GET. POST sends form data in the body of the HTTP request, which means it isn't appended to the URL and won’t be picked up by Google Analytics. This is the most effective way to solve the query parameter problem at its root.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

2. Use GA4's Data Redaction Feature

GA4 has a built-in safety net that can automatically scan event data for text that looks like an email address or certain URL query parameters and redact it before the information is stored.

  1. Navigate to Admin > Data Streams and click on your web data stream.
  2. Under the Events section, click on Redact data.
  3. Here, you can toggle on the option to redact email addresses. You can also specify URL query parameters that you want redacted from your collected data (e.g., firstname, lastname, email).

Important: While useful, this should be considered a line of defense, not a complete solution. The best approach is to prevent PII from being sent in the first place.

3. Implement Proper Data Governance

The best long-term solution is process-oriented.

  • Conduct Regular Audits: Make the PII check outlined above a regular task - monthly or quarterly.
  • Educate Your Team: Ensure anyone on your marketing or development team who works with your website, Google Tag Manager, or Google Analytics understands what PII is and why it's critical to avoid collecting it.
  • Be Cautious with User-ID: Double-check that your User-ID implementation uses only non-identifiable, system-generated IDs.

Final Thoughts

To recap, Google's policy against collecting PII is absolute, but accidental collection via URL parameters and custom tracking is a common misstep. By regularly auditing your reports and using GA4's built-in redaction settings - in addition to proper website form configuration - you can protect user privacy, stay compliant, and keep your valuable analytics data secure.

Manually staying on top of data from platforms like Google Analytics, your ad platforms, and your CRM can be a massive chore, often involving messy CSV downloads and spreadsheets where sensitive data can be mishandled. We built Graphed to solve this by providing secure, one-click integrations to all your data sources. We handle the complex connections so you can instantly get dashboards and insights using plain English, all in one place, without ever having to worry about breaking compliance rules by passing sensitive data around manually.

Related Articles