We recommend connecting customer action and conversion tracking for dynamic remarketing via the Google Tag (gtag.js).
The website already has standard event codes that are required to set up dynamic remarketing, which will be triggered after the settings described below are made.
To connect, you need to specify AW-GOOGLE_CONVERSION_ID in the site settings — a unique identifier that was provided when setting up conversion tracking.
Connecting code via Google tag
In your Google Ads account
You need to get the conversion tracking ID AW-GOOGLE_CONVERSION_ID:
Sign in to your Google Ads account, select the Tools tab on the left, then go to Shared Library → Audience Manager in the menu and open the last tab, Your data sources.
On the Google Ads tag card, click Set up tag. If you have already set up a tag, click the three-dot icon in the upper right corner of the card and select Edit source.
In the tag settings, select the Install the tag yourself method and find the value AW-GOOGLE_CONVERSION_ID in the tag code that appears .
When choosing the type of activity, specify Retail in the settings. For this type of activity, the necessary parameters of dynamic remarketing will be transmitted via the Google tag: ecomm_prodid, ecomm_pagetype, ecomm_totalvalue.
In your site admin panel
Go to Marketing → Marketing services.
Click Google Tag - UA, GA4, AW (gtag.js) to enter the settings.
Enter the Google Ads conversion tracking ID (AW-GOOGLE_CONVERSION_ID) in the System ID field.
Select the Active checkbox to activate the tag, and then click Save.
If you have already connected Google Analytics via the Google tag, the tracking code for remarketing must be connected as an additional product.
Connecting a dynamic remarketing tag as an additional product via gtag.js
After enabling gtag.js for any product, you can configure it to work with other products by simply adding additional lines with code identifiers.
For example, you have specified an Analytics tracking ID in the settings, and now you want to connect Google Ads. To do this, add the line with the Google Ads ID (AW-GOOGLE_CONVERSION_ID) to the initialization code.
gtag('config', 'AW-GOOGLE_CONVERSION_ID');
Attention: this is the only situation when you can make changes to the standard Tracking Code field in marketing systems.
Tracking code when connecting two marketing systems
In the same way, you can connect multiple Google Ads IDs to transfer data to multiple accounts at once.