This article is about Google Analytics 4 properties. Refer to the Universal Analytics section if you're still using a Universal Analytics property, which will stop processing data on July 1, 2023 (October 1, 2023 for Analytics 360 properties).

[GA4] Add custom parameters to automatically collected events

Collect information that's not collected by default

You can add custom parameters to automatically collect events to capture information that Google doesn't capture by default. For example, by adding a custom parameter to an automatically collected event, you can collect the author and category of the article on a web page.

Overview

To add custom parameters to automatically collected events, do one of the following:

  • Disable and then manually recreate an event with additional parameters
  • Send a custom event specifically to capture additional parameters
  • Add custom parameters to all events

Once you add the custom parameters, create corresponding custom dimensions and metrics so you can use the parameters for reporting.

Disable and manually recreate an event

If an automatically collected event doesn't capture certain information, you can disable the event and then set up the event as a custom event with custom parameters for the information you want to capture. For example, you could disable and then manually recreate the page_view event so the event captures the information that's important to you.

To learn how to disable:

Send a custom event to capture additional parameters

You can also create a separate custom event for the additional information you want to capture. For example, instead of disabling and then manually recreating the page_view event with all its original parameters, you could create a separate event that includes only the additional parameters.

Note: Sending duplicate events increases the total number of events captured at a given time, which could trigger sampling within shorter date ranges or at smaller sample sizes.

This approach may be best when you want to record custom parameters for a small portion of pageviews or screenviews, or when you don't expect to approach the sampling limit.

To learn more about custom events, see Custom events.

Add custom parameters to all events

Alternatively, you can add custom parameters to all events. For more information about how to add custom parameters to all events, see About event parameters.

Note: Sending duplicate events increases the total number of events captured at a given time, which could trigger sampling within shorter date ranges or at smaller sample sizes.
Was this helpful?
How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
69256
false
false