Version 5.0
AdvertServe User Manual :: v5.0

DoubleClick 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 DoubleClick that looks like the following:


<SCRIPT language='JavaScript1.1' SRC="http://ad.doubleclick.net/adj/N270.site.com/B17804;sz=468x60;ord=[timestamp]?"></script>
<NOSCRIPT>
<A HREF="http://ad.doubleclick.net/jump/N270.site.com/B17804; sz=468x60;ord=[timestamp]?">
<IMG SRC="http://ad.doubleclick.net/ad/N270.site.com/B17804;sz=468x60;ord=[timestamp]?" BORDER=0 WIDTH=468 HEIGHT=60 ALT="Click Here!">Click Here!</A>
</NOSCRIPT>

Modified Code

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


<SCRIPT language='JavaScript1.1' SRC="http://ad.doubleclick.net/adj/N270.site.com/B17804;sz=468x60;click=%%CLICKLINK%%;ord=[timestamp]?"></script>
<NOSCRIPT>
<A HREF="%%CLICKLINK%%http://ad.doubleclick.net/jump/N270.site.com/B17804; sz=468x60;ord=[timestamp]?">
<IMG SRC="http://ad.doubleclick.net/ad/N270.site.com/B17804;sz=468x60;ord=[timestamp]?" BORDER=0 WIDTH=468 HEIGHT=60 ALT="Click Here!">Click Here!</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 %%CLICKLINK%% in the <SCRIPT> tag to %%CLICKTAG%% instead. This is sometimes necessary if DoubleClick themselves are sourcing the ad from another third party.

Note Note

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

IFRAME

Original Code

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


<IFRAME SRC="http://ad.doubleclick.net/adi/N884.sitename/B3453509.2;sz=300x250;ord=[timestamp]?" WIDTH=300 HEIGHT=250 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR='#000000'>
<SCRIPT language='JavaScript1.1' SRC="http://ad.doubleclick.net/adj/N884.sitename/B3453509.2;abr=!ie;sz=300x250;ord=[timestamp]?">
</SCRIPT>
<NOSCRIPT>
<A HREF="http://ad.doubleclick.net/jump/N884.sitename/B3453509.2;abr=!ie4;abr=!ie5;sz=300x250;ord=[timestamp]?">
<IMG SRC="http://ad.doubleclick.net/ad/N884.sitename/B3453509.2;abr=!ie4;abr=!ie5;sz=300x250;ord=[timestamp]?" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here">
</A>
</NOSCRIPT>
</IFRAME>

Modified Code

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


<IFRAME SRC="http://ad.doubleclick.net/adi/N884.sitename/B3453509.2;sz=300x250;click=%%CLICKLINK%%;ord=[timestamp]?" WIDTH=300 HEIGHT=250 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR='#000000'>
<SCRIPT language='JavaScript1.1' SRC="http://ad.doubleclick.net/adj/N884.sitename/B3453509.2;abr=!ie;sz=300x250;click=%%CLICKLINK%%;ord=[timestamp]?">
</SCRIPT>
<NOSCRIPT>
<A HREF="%%CLICKLINK%%http://ad.doubleclick.net/jump/N884.sitename/B3453509.2;abr=!ie4;abr=!ie5;sz=300x250;ord=[timestamp]?">
<IMG SRC="http://ad.doubleclick.net/ad/N884.sitename/B3453509.2;abr=!ie4;abr=!ie5;sz=300x250;ord=[timestamp]?" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here">
</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 %%CLICKLINK%% in the <SCRIPT> and <IFRAME> tags to %%CLICKTAG%% instead. This is sometimes necessary if DoubleClick themselves are sourcing the ad from another third party.

Note Note

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

IMG Code

Original Code

You should have received some IMG code from DoubleClick that looks like the following:


<A HREF="http://ad.doubleclick.net/jump/N884.sitename/B2343505.2;sz=300x250;ord=[timestamp]?">
<IMG SRC="http://ad.doubleclick.net/ad/N884.sitename/B2343505.2;sz=300x250;ord=[timestamp]?" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here">
</A>

Modified Code

What you need to do is modify the URL in the <A> tag as shown by the highlighted changes:


<A HREF="%%CLICKLINK%%http://ad.doubleclick.net/jump/N884.sitename/B2343505.2;sz=300x250;ord=[timestamp]?" target="_blank">
<IMG SRC="http://ad.doubleclick.net/ad/N884.sitename/B2343505.2;sz=300x250;ord=[timestamp]?" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here">
</A>

Note Note

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

INS Code

Original Code

You should have received some IMG code from DoubleClick that looks like the following:


<ins class="dcmads" style="display:inline-block;width:300px;height:600px"
    data-dcm-placement="N5408.372584HARTFORDBUSINESSJOUR/B9456104.130262875"
    data-dcm-rendering-mode="iframe"
    data-dcm-https-only
    data-dcm-resettable-device-id="">
  <script src="https://www.googletagservices.com/dcm/dcmads.js"></script>
</ins>

Modified Code

What you need to do is modify the URL in the <A> tag as shown by the highlighted changes:


<ins class="dcmads" style="display:inline-block;width:300px;height:600px"
    data-dcm-click-tracker="%%CLICKLINK%%" data-dcm-placement="N5408.372584HARTFORDBUSINESSJOUR/B9456104.130262875"
    data-dcm-rendering-mode="iframe"
    data-dcm-https-only
    data-dcm-resettable-device-id="">
  <script src="https://www.googletagservices.com/dcm/dcmads.js"></script>
</ins>