What is NPA in Google Analytics?

Cody Schneider7 min read

Ever noticed a setting in Google Analytics called "NPA" and wondered what it does? It's a small setting with a big impact on your data, especially concerning user privacy and advertising. This article breaks down what NPA is, why it's important for complying with privacy laws, and how you can implement it correctly on your website.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

What is NPA in Google Analytics?

NPA stands for Non-Personalized Ads. At its core, the NPA setting is a signal you send to Google that says, “For this user, please do not use their data to personalize the ads they see.”

When you enable this signal (npa=1), it automatically disables Google Signals and any other data collection features that rely on tracking users for personalized advertising purposes. This includes building remarketing audiences and gathering detailed demographic and interest data that fuels ad targeting outside of basic contextual information.

It's important to understand what it doesn’t do. Activating NPA doesn't stop all data collection. You will still receive valuable measurement data in Google Analytics, such as:

  • Session counts and pageviews
  • Conversion measurement
  • Basic geographic and device information
  • Real-time traffic data

Essentially, your core web analytics remain intact. What changes is the ability to leverage that data for ad personalization. The advertising shown to these users will be based on contextual information (like the content of the page they are on) rather than their past behavior or inferred interests.

Free PDF Guide

AI for Data Analysis Crash Course

Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.

Why the NPA Setting Is So Important: Privacy and Compliance

The NPA setting exists for one primary reason: privacy regulations. Laws like the General Data Protection Regulation (GDPR) in Europe and the California Consumer Privacy Act (CCPA) grant users specific rights over how their personal data is collected and used, particularly for advertising.

These regulations require you to get explicit user consent before you can use cookies or other identifiers to track them for ad personalization. If a user visits your site from a region covered by these laws and does not give their consent for advertising cookies, you are legally obligated to respect that choice.

This is where NPA becomes your tool for compliance. By activating the NPA signal for users who have withheld consent, you’re instructing Google's systems to operate in a limited, non-personalized mode for them. It’s a simple, effective way to honor user preferences and avoid running afoul of strict privacy laws.

Personalised vs. Non-Personalized Ads: A Real-World Example

To make this clearer, let's look at how this plays out in the wild.

Scenario 1: Personalized Ads (NPA is OFF)

Imagine a user, Sarah, visits your e-commerce website and browses a specific category: "high-performance running shoes." She adds a pair to her cart but doesn't complete the purchase. Because she has consented to data collection for advertising, Google's tags track this behavior. Later, when Sarah is browsing a news website or scrolling through YouTube, she sees an ad for the exact running shoes she left in her cart. This is a personalized ad, made possible by data collected during her website visit. Your business can then add her to a "cart abandoners" remarketing list for future campaigns.

Scenario 2: Non-Personalized Ads (NPA is ON)

Now, let's say another user, David, visits your site from Germany and declines advertising cookies when presented with your consent banner. Your website correctly detects his choice and sends the npa=1 signal to Google. David also browses for running shoes. Later, while he's on the same news website as Sarah, he might see an ad related to athletics because the news article is about sports (that's contextual targeting), but he won't see an ad for the specific shoes from your site. His visit data was not used to personalize his ad experience, and he can’t be added to your remarketing audiences.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

How to Enable and Control the NPA Signal

You don't manually flip a switch for individual users. The NPA signal is dynamically enabled based on user consent, which is typically managed through a Consent Management Platform (CMP). Here are the most common ways it’s implemented.

1. Using Google Consent Mode v2 and a CMP

This is the standard and recommended method. Google Consent Mode is a framework that allows your Google tags to adjust their behavior based on the consent choices made by your users.

A CMP (like CookieYes, OneTrust, or Cookiebot) integration with Consent Mode handles this automatically:

  1. A user arrives on your site. The CMP displays a consent banner asking for their preferences.
  2. The user provides their choice (e.g., they deny consent for ad_personalization).
  3. The CMP communicates this choice to Google Consent Mode.
  4. Consent Mode then automatically instructs the Google Analytics tag to fire with the NPA parameter set to true, ensuring compliance without any manual intervention from your side.

If you're using a CMP, ensuring it’s properly configured for Google Consent Mode V2 is the easiest way to manage NPA compliance.

2. Directly with the Global Site Tag (gtag.js)

If your website has the GA4 tracking code hardcoded directly into the HTML, you can manually set the NPA parameter within the tag itself. This is typically done as a default setting and then overwritten by a user's consent choice.

To set it by default (for example, to make non-personalized the default state until a user grants consent), you modify your configuration snippet like this:

gtag('set', 'allow_ad_personalization_signals', false),
gtag('config', 'G-XXXXXXXXXX'),

In this snippet, setting allow_ad_personalization_signals to false is the equivalent of sending the npa=1 signal. You would need additional logic (likely from a CMP) to change this to true if a user gives consent.

Free PDF Guide

AI for Data Analysis Crash Course

Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.

3. With Google Tag Manager (GTM)

If you manage your tags through GTM, you can control this setting directly in your Google Analytics: GA4 Configuration tag.

  1. Navigate to your GA4 Configuration tag in GTM.
  2. Under "Fields to Set," add a new field.
  3. For the "Field Name," enter allow_ad_personalization_signals.
  4. For the "Value," you'd typically use a variable that reads the consent status from your CMP. For instance, you could hardcode it to false to make it the default or, more dynamically, set it to a variable that returns true or false based on the user's actual consent choice.

The Bottom Line: Balancing Data with Privacy

The NPA setting in Google Analytics isn't just a technical toggle, it's a fundamental part of a modern, privacy-first approach to digital marketing and analytics. It symbolizes the shift towards giving users transparent control over their data.

While enabling it does mean forgoing some powerful advertising features like remarketing for those specific users, it's a non-negotiable for anyone operating in regions with strong data privacy laws. Using it correctly via Consent Mode and a good CMP helps you stay compliant, build trust with your audience, and continue gathering the vital measurement data you need to understand website performance and make informed business decisions.

Final Thoughts

In short, the Non-Personalized Ads (NPA) signal is your key to respecting user choice in Google Analytics. It disables data collection for ad personalization and remarketing, ensuring your site complies with privacy regulations like GDPR while still allowing you to measure essential website activity.

Wrangling that analytics data to get clear answers can still be a challenge. That's why we built Graphed. We connect directly to your Google Analytics account so you can stop wrestling with complex reports and interfaces. By simply asking questions in plain English, you can instantly build dashboards and pull insights, unifying your GA data with marketing platforms like Google Ads and social channels to see the full picture without the manual work.

Related Articles