Skip to main content
Google Analytics 4: GTAG
Jonas Østergård Bæk avatar
Written by Jonas Østergård Bæk
Updated over a month ago

If GTAG is currently used for the event tracking, then using this type of target for Enhanced signals makes perfect sense. You can learn more on data is sent to Google Analytics 4 in here.

If you are using Firebase, check another type of target for Enhanced signals: Google Analytics 4: Firebase.

Ensure that you properly adjust Google Analytics 4 to receive transformed information from Enhanced signals. You can learn more about the required settings here.

1. How to set up this target

When you reach Step 2, simply select 'Google Analytics 4 - GTAG e-commerce' as the target to send the events to:

2. How to choose an Event name

The Event name is the name of the event you would like to send to the Google Analytics 4 property.

You can choose either 'precise_ecomm' or 'purchase' event:

The choice of event depends on your business needs:

  • If you select 'purchase': It will be sent as a normal enhanced e-commerce event. This has the benefit of providing item-level data, but it also means that a duplicate Google Analytics 4 property should be created to avoid overwriting existing revenue tracking.

  • If you select 'precis_ecomm': It will be sent as a custom event, where the value will simply be the calculated value. This can be beneficial if item-level data is not required and you prefer keeping the data in the same Google Analytics 4 property.

3. How to provide a Measurement ID

The Measurement ID is associated with the data stream you wish to use.

For example: G-ABC1ABC2AB.

To find the Measurement ID, follow these steps:

  1. Go to Google Analytics.

  2. Navigate to: Admin → Data streams.

  3. Select the required stream.

  4. The Measurement ID will be displayed.

4. How to set up an API secret

The API secret is used to authenticate events sent to the Google Analytics 4 property.

For example: AB1ABC2ABCDEFgHi3AB11aB.

To create a new API secret, follow these steps:

  1. Go to Google Analytics 4.

  2. Navigate to: Admin → Data streams.

  3. Select the required stream.

  4. Choose Measurement protocol.

  5. Click on the 'Create' button to start.

Did this answer your question?