MediaMath

The following presents a guideline on how MediaMath standard and rich media tags should be edited to count clicks in Google Ad Manager. In order to track clicks follow the procedure below:

IFRAME Code

Original Code

You should have received some IFRAME code from MediaMath that looks similar to the following example:

<iframe width=300 height=250 scrolling=no frameborder=0 marginwidth=0 marginheight=0 src='https://tags.mathtag.com/ad/iframe/897/548?pmp=8754&click=&rfr={INSERT_PUBLISHER_URL}&random={INSERT_CACHEBUSTER}'>
</iframe>

Modified Code

What you need to do is modify the URL in the <IFRAME> tag as shown by the highlighted changes, The resulting tag should look similar to the following example:

<iframe width=300 height=250 scrolling=no frameborder=0 marginwidth=0 marginheight=0 src='https://tags.mathtag.com/ad/iframe/897/548?pmp=8754&click=%%CLICK_URL_ESC%%&rfr=%%REFERRER_URL%%&random=%%CACHEBUSTER%%'>
</iframe>

Note

The ad server recognises the [timestamp] placeholder and will automatically replace it with a cache buster. It is not necessary to convert it to the %%CACHEBUSTER%% macro manually.

Use %%CLICK_URL_UNESC%% at the beginning of a link. Use %%CLICK_URL_ESC%% when the click-tracker is the parameter of another URL.

<a href="%%CLICK_URL_UNESC%%https://www.google.com">link</a>
<a href="https://www.google.com?rd_url=%%CLICK_URL_ESC%%">link</a>