Skip to main content
All CollectionsEnhanced signalsHow to work with events
Send events using Google Tag Manager
Send events using Google Tag Manager
Jonas Østergård Bæk avatar
Written by Jonas Østergård Bæk
Updated over a month ago

Ensure that the Enhanced signals tags are configured to fire only when the necessary consent is present. Additionally, make sure to share data in accordance with your privacy policies and applicable laws and regulations.

Follow only one of the two approaches explained below. Do not mix or implement both.

Approach #1: Google Tag Manager web container setup

The GTM web container setup supports all available targets target and all available transformations. The GTM web container setup is the recommended approach.

1. Basic implementation

The basic implementation is always required.

  1. Create a new workspace in GTM.

  2. Click on 'Admin' in the main menu.

  3. Click on 'Import container'.

  4. Click 'Choose container file' and select the JSON file you downloaded in point 1.

  5. Under 'Choose workspace', click 'Existing' and select the workspace you created.

  6. Choose 'Merge' as the import option.

  7. Select 'Rename conflicting tags, triggers, and variables'.

  8. Click 'Confirm'.

Assets to modify

Below is the list of assets and possible modifications you can make to them:

Asset

Action

'GA4 - Enhanced Signals - page_view' (config tag)

  • Make any necessary changes, such as adjusting the trigger setup, configuration settings, and event settings.

'GA4 - Enhanced Signals - purchase'

  • Make the necessary changes to the trigger setup.

Lookup table variables (for example ‘Enhanced Signals - LT - Config ID’)

  • Make the necessary adjustments.

  • If you only need one value for configuration, currency, market, and Measurement ID, feel free to add those values directly to the 'Enhanced Signals Settings' variable.

'Enhanced Signals - Settings Variable'

  • Ensure all 'Required' fields are set, as well as any 'Optional' fields that are applicable to your case (e.g., setting the fields for the Google Ads target).

  • Add variables to the 'ad_user_data' and 'ad_personalization' fields.

  • Hover over the question mark for each field to see the help text.

  • Uncheck 'dry run' before publishing your GTM workspace."

Assets to remove

Remove the following assets if your Enhanced signals configuration does not utilise the Google Ads target:

  • Enhanced Signals - Google Click ID to cookie (tag)

  • Enhanced Signals - Google Click ID to cookie (tag template)

  • Enhanced Signals - Cookie - gtm_es_gads_id

  • Enhanced Signals - JS - Create Event Timestamp

2. If your target is Google Ads

If your Enhanced signals configuration is using the Google Ads target, follow the instructions below:

Asset

Action

'Enhanced Signals - Google Click ID to cookie'

  • Modify the trigger setup so that the tag fires on all pageviews when consent is present.

'Enhanced Signals - Settings Variable'

  • Add the 'Enhanced Signals - Cookie - gtm_es_gads_id' variable to the 'Google Ads Click ID' field.

  • Add the 'Enhanced Signals - JS - Create Event Timestamp' variable to the 'Google Ads Event Timestamp' field.

3. If your target is Facebook Ads

If your Enhanced signals configuration is using the Facebook Ads target, follow the instructions below:

Asset

Action

'Enhanced Signals - Settings Variable'

  • Add a variable in the Facebook Click ID field.

  • Add a variable in the Facebook Browser ID field.

  • Add a variable in the Content Type field.

Refer to the help text for each field in the 'Enhanced Signals - Settings Variable' in GTM for more detailed instructions.

4. If your target is Google Tag Manager: Server-side

If your Enhanced signals configuration is using the Google Tag Manager: Server-side target, read the instructions here.

5. If User-identify data is used

If you intend to send user-identifying data (also known as 'hashed identifiers') to various targets, follow the instructions below.

Asset

Action

'Enhanced Signals - Settings Variable'

  • Enable the checkbox for user-provided data.

  • Add your chosen identifiers.

Approach #2: Google Tag Manager Server container setup

This setup requires Google Analytics 4 requests from a GTM Web container. If you already proxy Google Analytics 4 Web requests via Server GTM, you can use those events. If not, you need to implement Google Analytics 4 tags in your GTM Web container first.

Note that Enhanced measurement, Google signals, Referral exclusions, and many other property and stream settings will be inherited from the GA4 Measurement ID deployed client-side.

1. Basic implementation

The basic implementation is always required.

  1. Create a new workspace in GTM.

  2. Click on 'Admin' in the main menu.

  3. Click on 'Import container'.

  4. Click 'Choose container file' and select the JSON file you downloaded in point 1.

  5. Under 'Choose workspace', click 'Existing' and select the workspace you created.

  6. Choose 'Merge' as the import option.

  7. Select 'Rename conflicting tags, triggers, and variables'.

  8. Click 'Confirm'.

Assets to modify

Below is the list of assets and possible modifications you can make to them:

Asset

Action

'Enhanced Signals - GA4 - purchase'

  • Add variables to the 'ad_user_data' and 'ad_personalization' fields.

  • Adjust the trigger setup if necessary.

'Enhanced Signals - GA4 - basic events'

  • Adjust the trigger to include more events than 'page_view' and 'user_engagement' if desired.

'Enhanced Signals - LT - Config ID'

  • Make the necessary adjustments.

  • If you only need one value for config, currency, market, and Measurement ID, feel free to add those values directly to the 'Enhanced Signals Settings' variable.

  • Ensure the Measurement IDs in the 'LT - ES - Is ES Measurement ID' variable reflect the Measurement IDs from the GA4 client-side setup used for Enhanced Signals.

2. If your target is Google Ads

If your Enhanced signals configuration is using the Google Ads target, follow the instructions below:

1. Create a new workspace in your GTM Web container.

2. Import only the following assets from this GTM container JSON into the workspace you just created:

  • Enhanced Signals - Google Click ID to cookie (tag template)

  • Enhanced Signals - Google Click ID to cookie (tag)

  • Enhanced Signals - Cookie - gtm_es_gads_id (variable)

  • Enhanced Signals - JS - Create Event Timestamp (variable)

3. In the web container, add the following key-value pairs to the Google Analytics 4 purchase tag responsible for sending requests to the GTM Server container and your Enhanced Signals Server tag:

  • es_gads_id: {{Enhanced Signals - Cookie - gtm_es_gads_id}}

  • es_gads_event_timestamp: {{Enhanced Signals - JS - Create Event Timestamp}}

4. In the server container, exclude the above parameters from Google Analytics 4 tags.

5. In the server container, enable the Google Ads target in your Enhanced signals tag.

3. If your target is Facebook Ads target

If your Enhanced signals configuration is using the Facebook Ads target, follow the instructions below:

Asset

Action

'Enhanced Signals - GA4 - purchase'

  • Add a variable to the Facebook Click ID field.

  • Add a variable to the Facebook Browser ID field.

  • Add a variable to the Content Type field.

Refer to the detailed instructions in the help text for each field in the 'Enhanced Signals - GA4 - purchase' tag in GTM.

4. If your target is Google Tag Manager: Server-side

If your Enhanced signals configuration is using the Google Tag Manager: Server-side target, read the instructions here.

5. If User-identifying data is used

If you intend to send user-identifying data (also known as 'hashed identifiers') to various targets, follow the instructions below.

Asset

Action

'Enhanced Signals - GA4 - purchase'

  • Enable the checkbox for User-provided data.

  • Add your identifiers of choice.

Refer to the detailed instructions in the help text for each field in the 'Enhanced Signals - GA4 - purchase' tag in GTM.

Did this answer your question?