How do I track my Google Ads campaigns?
Tip
All your Google Ads campaigns must be tracked with the Eulerian tracking template specific to each campaign type (Performance Max, Search Network, Shopping, Sitelinks), in the field: Final URL suffix.
Note
If you put the Eulerian tracking template directly into the tracking template of your Google Ads campaigns, we advise you to encode special characters.
Important
If you wrap the Eulerian tracking template inside another platform’s tracking, make sure your separators (the | sign) and your macro markers (the { } signs) are not encoded (as %C and %D respectively).
Note
Dedicated documentation on tracking DV360 campaigns is available here: How do I track a campaign on DV360?
Note
To track your YouTube Ads campaigns, see the dedicated documentation: How do I track my YouTube campaigns?
What the Google Ads tracking template gives you
- Automatic trafficking of your Google Ads campaigns on the following dimensions:
- Accounts
- Campaigns
- Ads
- Device type
- Automatic retrieval of Google Ads campaign spend through our dedicated connector. Eulerian documentation for setting up the Google Ads spend connector.
Where do I put the Eulerian tracking template in my Google Ads platform?
- Go to your Google Ads account.
- Select the campaign concerned.
- Go to the campaign’s ‘Final URL suffix’ section and add the matching Eulerian tracking template.
How does the Eulerian tracking template work?
For every campaign type, only the &eseg-item= parameter has to be filled in by hand in the tracking template.
- The ?esl-k=google-ads parameter is the publisher name. Do not change it.
- The &eseg-item= parameter is the name of the Sitelink you want to track. It must contain no spaces or special characters.
All the other parameters in the Eulerian tracking template are dynamic and based on Google Ads macros.
Turning on automated tracking with the Google Ads connector
If you tick the “Automate tracking at campaign level” box when you create the connector, Eulerian Marketing Platform switches on the necessary tracking without you having to do it by hand.
![]()
Note
The Google Ads API does not allow tracking templates to be updated for VIDEO campaigns.
Trafficking templates by Google Ads campaign type
Performance Max:
{lpurl}?esl-k=google-ads|n{network}|c{creative}|m{matchtype}|k{keyword}|p{placement}|t{target}|d{device}|a{assetgroupid}|g{campaignid}
Macro descriptions:
{lpurl}: macro giving your landing page
?esl-k=google-ads: This parameter is the name of the ad network. Do not change it.
n{network}|: macro giving the network the click came from
c{creative}|: macro giving the ID of the ad the click came from
m{matchtype}|: macro giving the keyword match type (exact match, broad match…) of the click
k{keyword}|: macro giving the keyword the click came from
p{placement}|: macro giving the placement the click came from
t{target}|: macro giving the category of the placement the click came from
d{device}|: macro giving the device the click came from
a{assetgroupid}|: macro giving the ID of the asset group the click came from. Supported since September 2026 (release note); before that, as Google provides no adgroupid for Performance Max campaigns, this field duplicated {campaignid}. If your Performance Max campaigns still carry a{campaignid}, replace it with a{assetgroupid} to analyse your performance by asset group.
g{campaignid}|: macro giving the ID of the campaign the click came from
Search Network & Demand Gen:
{lpurl}?esl-k=google-ads|n{network}|c{creative}|m{matchtype}|k{keyword}|p{placement}|t{target}|d{device}|a{adgroupid}|g{campaignid}
Macro descriptions:
{lpurl}: macro giving your landing page
?esl-k=google-ads|: This parameter is the name of the ad network. Do not change it.
n{network}|: macro giving the network the click came from
c{creative}|: macro giving the ID of the ad the click came from
m{matchtype}|: macro giving the keyword match type (exact match, broad match…) of the click
k{keyword}|: macro giving the keyword the click came from
p{placement}|: macro giving the placement the click came from
t{target}|: macro giving the category of the placement the click came from
d{device}|: macro giving the device the click came from
a{adgroupid}|: macro giving the ID of the ad group the click came from
g{campaignid}|: macro giving the ID of the campaign the click came from
Shopping
{lpurl}?esl-k=google-ads|n{network}|c{creative}|m{matchtype}|k{adtype}{product_partition_id}|p{placement}|t{target}|d{device}|a{adgroupid}|g{campaignid}
If you use Search Ads 360 (or for Shopping campaigns with an intermediary between the click and the redirect), Google may ask you to provide an {unescapedlpurl}, which forces a tracking URL with encoded separators. It should look like this:
{unescapedlpurl}?esl-k=google-ads%7Cn{network}%7Cc{creative}%7Cm{matchtype}%7Ck{adtype}{product_partition_id}%7Cp{placement}%7Ct{target}%7Cd{device}%7Ca{adgroupid}%7Cg{campaignid}
Macro descriptions:
{lpurl}: your landing page
?esl-k= google-ads|: This parameter is the name of the ad network. Do not change it.
n{network}|: macro giving the network the click came from
c{creative}|: macro giving the ID of the ad the click came from
m{matchtype}|: macro giving the keyword match type (exact match, broad match…) of the click
k{adtype}{production partition id}|: macro giving the type of content shown (promotion, purchase available locally or online, directly on Google…) and the ID of the product clicked in the Google Shopping product group.
p{placement}|: macro giving the placement the click came from
t{target}|: macro giving the category of the placement the click came from
d{device}|: macro giving the device the click came from
a{adgroupid}|: macro giving the ID of the Google Shopping ad group the click came from
g{campaignid}|: macro giving the ID of the campaign the click came from
Sitelinks
{lpurl}?esl-k=google-ads|n{network}|c{creative}|m{matchtype}|k{keyword}-sitelink|t{target}|d{device}|a{adgroupid}|g{campaignid}&eseg-name=esitelink&eseg-item=SITELINK_NAME
Macro descriptions:
{lpurl}: your landing page.
?esl-k=google-ads|: This parameter is the name of the ad network. Do not change it.
n{network}|: macro giving the network the click came from
c{creative}|: macro giving the ID of the ad the click came from
m{matchtype}|: macro giving the keyword match type (exact match, broad match…) of the click
k{keyword}-sitelink|: macro giving the keyword the click came from
t{target}|: macro giving the category of the placement the click came from
d{device}|: macro giving the device the click came from
a{adgroupid}|: macro giving the ID of the ad group the click came from
g{campaignid}|: macro giving the ID of the campaign the click came from
&eseg-name=esitelink: do not change
&eseg-item=SITELINK_NAME: Check the name of the sitelink, which will appear as the value of the esitelink incoming segment. It must contain no spaces or special characters.
To use the incoming segment level of segmentation, you must fill in the eseg-name and eseg-item fields.
Hotel Ads
{lpurl}?esl-k=google-ads|n{network}|c{creative}|m{matchtype}|k{keyword}|p{placement}|t{target}|d{device}|a{adgroupid}|g{campaignid}
Macro descriptions:
{lpurl}: macro giving your landing page
?esl-k=google-ads|: This parameter is the name of the ad network. Do not change it.
n{network}|: macro giving the network the click came from
c{creative}|: macro giving the ID of the ad the click came from
m{matchtype}|: macro giving the keyword match type (exact match, broad match…) of the click
k{keyword}|: macro giving the keyword the click came from
p{placement}|: macro giving the placement the click came from
t{target}|: macro giving the category of the placement the click came from
d{device}|: macro giving the device the click came from
a{adgroupid}|: macro giving the ID of the ad group the click came from
g{campaignid}|: macro giving the ID of the campaign the click came from
Video
Warning
Campaigns whose
advertisingChannelTypeisVIDEOcannot be tracked automatically through the connector: you have to do it by hand, using the standard tracking