Using the %e or %s macro with click trackers on Google Ad Manager sites

It's better to hard-code the site ID you want directly into the URL of the click tracker.

Here's why: Normally, you can code your macro to expand into the ID of the site your click tracker is on. However, this doesn't work on Ad Manager sites. Ad Manager uses different IDs for sites than Campaign Manager 360. When your Campaign Manager 360 macros run on an Ad Manager site, they expand into Ad Manager IDs. These won't match your site IDs in Campaign Manager 360. So your click tracker will report the wrong data.

If you're using tracking ads on mobile app inventory and are using a static landing page, the %e macro will not expand properly.

Solution

Hard-code the site ID into the URL of the click tracker. You can do this in Campaign Manager 360 or by exporting the click tracker tag and entering the ID manually.

To check the site ID, click Admin > Sites in Campaign Manager 360 and find your site.

Add in Campaign Manager 360
  1. Find the Landing page field of your click tracker properties.

  2. Enter a question mark at the end of the URL, followed by site_id= and then the site ID number.

    For example, if your landing page is http://www.google.com and your site ID is 99559, the URL should look like this:

    http://www.google.com/?site_id=99559
Add manually
  1. Export your click tracker tag.

  2. Open your tags and add the site ID to the end of the landing page URL. The format is [landing page URL]/?site_id=[site id].

    For example, if your landing page is http://www.google.com and your site ID is 99559, the tag should look like something this:

    http://ad.doubleclick.net/clk;813832;3731538;l?http://www.google.com/?site_id=99559

     

  3. Save your tag and send to publishers.

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
2024 Privacy Readiness guide

Prepare for a world without third-party cookies and unlock the AI
opportunity by adopting a durable measurement setup.
Start Today

Search
Clear search
Close search
Main menu
15747784631954764009
true
Search Help Center
true
true
true
true
true
69192
false
false