Version 5.0
AdvertServe User Manual :: v5.0

Mediaplex Click Tracking

Note Note

Manually making the changes documented here to activate click tracking is no longer necessary. As of version 3.0 the ad server will automatically make these changes for you when creating or editing a media. These examples are only provided as a reference so you can see if a particular code format is recognized or not. Please submit unrecognized codes to support for addition to our automated processing rules.

JavaScript Code

Original Code

You should have received some JavaScript code from Mediaplex that looks like the following:


<script language="JavaScript1.1" src="http://altfarm.mediaplex.com/ad/js/3178-13924-1843-0?mpt=[CACHEBUSTER]&mpvc="></script>
<noscript>
<a href="http://altfarm.mediaplex.com/ad/ck/3178-13924-1843-0?mpt=[CACHEBUSTER]">
<img src="http://altfarm.mediaplex.com/ad/bn/3178-13924-1843-0?mpt=[CACHEBUSTER]" alt="Click here for reservations" border="0">
</a>
</noscript>

Modified Code

What you need to do is modify the URLs in the <SCRIPT> and <A> tags as shown by the highlighted changes:


<script language="JavaScript1.1" src="http://altfarm.mediaplex.com/ad/js/3178-13924-1843-0?mpt=[CACHEBUSTER]&mpvc=%%CLICKTAG%%"></script>
<noscript>
<a href="%%CLICKLINK%%http://altfarm.mediaplex.com/ad/ck/3178-13924-1843-0?mpt=[CACHEBUSTER]">
<img src="http://altfarm.mediaplex.com/ad/bn/3178-13924-1843-0?mpt=[CACHEBUSTER]" alt="Click here for reservations" border="0">
</a>
</noscript>

Warning Warning

Make sure to preview the media and test clicking on it after it's created. If it fails to click through properly, try changing the bold %%CLICKTAG%% in the <SCRIPT> tag to %%CLICKLINK%% instead. This is sometimes necessary if Mediaplex themselves are sourcing the ad from another third party.

Note Note

The ad server recognizes the [CACHEBUSTER] placeholder and will automatically replace it with a random number. It is not necessary to convert it to the %%RANDOM%% macro manually.

IFRAME Code

Original Code

You should have received some IFRAME code from Mediaplex that looks like the following:


<iframe src="http://altfarm.mediaplex.com/ad/fm/18630-145298-44091-1?mpt=[CACHEBUSTER]&mpvc=" width=300 height=250 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000">
<script type="text/javascript" src="http://altfarm.mediaplex.com/ad/!js/18630-145298-44091-1?mpt=[CACHEBUSTER]&mpvc=">
</script>
<noscript>
<a href="http://altfarm.mediaplex.com/ad/nc/18630-145298-44091-1?mpt=[CACHEBUSTER]">
<img src="http://altfarm.mediaplex.com/ad/nb/18630-145298-44091-1?mpt=[CACHEBUSTER]" alt="Click Here" border="0">
</a>
</noscript>
</iframe>

Modified Code

What you need to do is modify the URLs in the <SCRIPT>, <IFRAME> and <A> tags as shown by the highlighted changes:


<iframe src="http://altfarm.mediaplex.com/ad/fm/18630-145298-44091-1?mpt=[CACHEBUSTER]&mpvc=%%CLICKTAG%%" width=300 height=250 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000">
<script type="text/javascript" src="http://altfarm.mediaplex.com/ad/!js/18630-145298-44091-1?mpt=[CACHEBUSTER]&mpvc=%%CLICKTAG%%">
</script>
<noscript>
<a href="%%CLICKLINK%%http://altfarm.mediaplex.com/ad/nc/18630-145298-44091-1?mpt=[CACHEBUSTER]">
<img src="http://altfarm.mediaplex.com/ad/nb/18630-145298-44091-1?mpt=[CACHEBUSTER]" alt="Click Here" border="0">
</a>
</noscript>
</iframe>

Warning Warning

Make sure to preview the media and test clicking on it after it's created. If it fails to click through properly, try changing the bold %%CLICKTAG%% in the <SCRIPT> and <IFRAME> tags to %%CLICKLINK%% instead. This is sometimes necessary if Mediaplex themselves are sourcing the ad from another third party.

Note Note

The ad server recognizes the [CACHEBUSTER] placeholder and will automatically replace it with a random number. It is not necessary to convert it to the %%RANDOM%% macro manually.