How Can I Remove the nab Parameter From Google Analytics 4 Reports?

Nelio A/B Testing may add a nab query parameter to your URLs while running A/B tests. This parameter helps Nelio identify which variant should be shown to each visitor.

For example, a URL such as:

https://example.com/tested-page/

may appear as:

https://example.com/tested-page/?nab=1

Google Analytics 4 (GA4) may treat URLs with different query parameters as separate page locations. As a result, the same page may appear as multiple entries in your reports depending on the value of the nab parameter.

Removing the nab Parameter From GA4 Reports

GA4 doesn’t provide a built-in setting to exclude specific URL query parameters from reports. However, you can use Google Tag Manager (GTM) to send a cleaned version of the page URL to GA4.

To do this:

  1. Create a variable in Google Tag Manager that returns the current page URL without the nab query parameter.
  2. Configure your GA4 tag to use this cleaned URL as the value of the page_location parameter.
  3. Publish your changes in Google Tag Manager.

Once configured, GA4 will receive the cleaned URL instead of the URL containing the nab parameter, helping prevent the same page from appearing as separate entries in your reports.

Note that this only changes the URL sent to Google Analytics. It does not remove the nab parameter from the visitor’s browser or affect how Nelio A/B Testing works.

If you want to learn more about why Nelio A/B Testing adds parameters to your URLs or how to hide them from visitors, see Why Do A/B Testing Parameters Appear in My URLs, and How Can I Hide Them?