From September, Flash will no longer be supported by Chrome. Prepare for the shift towards HTML5 by visiting our Flash to HTML5 help page

Check it out!

Adform Tags as 3rd party

This following presents a guideline on how Adform standard rich media tags should be edited to count clicks in standard website ad management systems. Adform ad serving uses standard rich media javascript tags:

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567"></script>
<noscript>
 <a href="http://track.adform.net/C/?bn=14966567;C=0" TARGET="_blank">
  <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=[timestamp]" border="0" width="468" height="60" alt="">
 </a>
</noscript>

In order to track clicks follow the procedure below:

1. Create a click counter in your ad management system (example: "http://www.youradsystem.com/?redirect=")
2. Insert ";click=" and "http://www.youradsystem.com/?redirect=" into the redirect string
3. In case click URL must be encoded, please use „;encodedclick=“ instead of „;click=“

 

The resulting tag should look similar to the following example:

<script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=http://www.youradsystem.com/?redirect="></script>
<noscript>
 <a href="http://www.youradsystem.com/?redirect=http://track.adform.net/C/?bn=14966567;C=0" target="_blank">
  <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=yourrandomnumber" border="0" width="468" height="60" alt="">
 </a>
</noscript>

"http://www.youradsystem.com/?redirect=http://www.google.com" is merely an example of a redirect url. When the url is entered into a browser it counts a click in your ad management system and redirect to http://www.google.com.
By inserting ";click=http://www.youradsystem.com/?redirect=" in the Adform javascript tag the Adform system returns an ad, which (when clicked) redirects to your ad management system, which again redirects to Adform where the final redirect is performed according to the Adform database value.

 

Master tag implementation

In order to track clicks on kept impressions, additional parameter needs to be added to master tag. Parameter should contain encoded URL of click tracker.

  • cturl – this parameter is dedicated to provide click tracker URL for master tags.
  • cttype – in addition to click tracker URL, you can provide click tracker type. 1 - using redirect that is capable of decoding, 2 - using redirect that is not capable of decoding, 3 - using out of band pixels. 1 and 2 types are using redirects, where 3 is fired as a pixel during the time Adform counts a click (Adform click tracker is active within a browser and before redirecting to landing page).

When master tag is used replace ;click= with &cturl= and add cttype respectively.  In case cctype=1 it could be skipped, in most cases cctype=3 is used. Adjusted master tag sample:

 <script type="text/javascript" src="http://adx.adform.net/adx/?mid=140855&cttype=3&cturl=[macros]"></script>

 

 

Note: Add "http//*.adform.net" under "allowed domains". Special characters in your system click counter must be encoded ("&", "?", spaces, etc).

 

iFrame tags

Redirect URL in iFrames are edited in much the same way. To track clicks, insert ";click=" and "http://www.youradsystem.com/?redirect=" into the redirect string.

You should also exchange the Timestamp variable to your random number.

<iframe name="CPbanner871552" src="http://track.adform.net/adfscript/?bn=14966567;click=http://www.youradsystem.com/?
redirect=;cpjs=2;ord=YourRandomNumber" width="980" height="150" marginwidth="0" marginheight="0" hspace="0" vspace="0" 
frameborder="0" scrolling="no"></iframe>

Examples

  • AdOcean example

    What you will do in order to track clicks is add the ";click=" and <%%REDIR%%> into the redirect string as below. [timestamp] is exchanged for <%%unique%%>.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=<%%REDIR%%>"></script>
    <noscript>
     <a href="<%%REDIR%%>http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=<%%unique%%>" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • AdSpeed example

    What you will do in order to track clicks is add the ";click=" and [ASClickTrackerRaw] into the redirect string as below.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=[ASClickTrackerRaw]"></script>
    <noscript>    
     <a href="[ASClickTrackerRaw]http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=[timestamp]" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • Appnexus

    What you will do in order to track clicks is add the ";encodedclick=" and ${CLICK_URL} into the redirect string as below. [timestamp] is exchanged for ${CACHEBUSTER}.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;encodedclick=${CLICK_URL}"></script>
    <noscript>    
     <a href="${CLICK_URL}http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=${CACHEBUSTER}" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • Dart Tag example

    What you will do in order to track clicks is add the ";click=" and %c into the redirect string as below. [timestamp] is exchanged for %n.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=%c"></script>
    <noscript>
     <a href="%chttp://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=%n" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • DBM example

    What you will do in order to track clicks is add the ";click=" and ${CLICK_URL} into the redirect string as below. [timestamp] is exchanged for ${CACHEBUSTER}.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=${CLICK_URL}"></script><noscript>
     <a href="${CLICK_URL}http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=${CACHEBUSTER}" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • Doubleclick for Publishers

    In order to track clicks in DFP add parameter ";click=" and %%CLICK_URL_UNESC%% into the redirect string. [timestamp] is exchanged for %%CACHEBUSTER%%

    Modified TAG would look like:

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=%%CLICK_URL_UNESC%%"></script><noscript>
     <a href="%%CLICK_URL_UNESC%%http://track.adform.net/C/?bn=14966567;C=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=%%CACHEBUSTER%%" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • EmediateAd Tag example

    What you will do in order to track clicks is add the ";click=" and EASLink= parameters into the redirect string as below. [timestamp] is exchanged for _U_.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=EASLink="></script>
    <noscript>
     <a href="EASLink=http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=_U_" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • Helios IQ example

    What you will do in order to track clicks is add the ";click=" and _ADCLICK_ into the redirect string as below. [timestamp] is exchanged for _ADTIME_.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=_ADCLICK_"></script>
    <noscript>
     <a href="_ADCLICK_http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=_ADTIME_" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • Newtention example

    To track clicks, add the ";click=" and ${click_plain} into the redirect string as shown below. [timestamp] variable is exchanged for ${random}.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=${click_plain}"></script>
    <noscript>
     <a href="${click_plain}http://track.adform.net/C/?bn=14966567;C=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=${random}" border="0" width="300" height="250" alt=""/>
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • OpenX example

    What you will do in order to track clicks is add the ";click=" and {clickurl} into the redirect string as below. [timestamp] is exchanged for {random}.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click={clickurl}"></script>
    <noscript>    
     <a href="{clickurl}http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord={random}" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • Real Media example

    What you will do in order to track clicks is add the ";click=" and %%C%%?_RM_REDIR_= into the redirect string as below. [timestamp] is exchanged for %%REALRAND%%.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=%%C%%?_RM_REDIR_="></script>
    <noscript>
     <a href="%%C%%?_RM_REDIR_=http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=%%REALRAND%%" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • Smadex example

    What you will do in order to track clicks is add the ";click=" and {$CLICK_TRACK_URL$} into the redirect string as below. [timestamp] is exchanged for {%timestamp%}.

    <script language="javascript" src="https://track.adform.net/adfscript/?bn=14966567;encodedclick={$CLICK_TRACK_URL$}&redirect_url="></script>
    <noscript><a href="{$CLICK_TRACK_URL$}&redirect_url=https://track.adform.net/C/?bn=14966567;C=0" target="_blank">
    <img src="https://track.adform.net/adfserve/?bn=14966567;srctype=4;ord={$timestamp$}" border="0" width="468" height="60" alt="">
    </a></noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

  • Smart AdServer

    What you will do in order to track clicks is add the ";click=" and [countgo] into the redirect string as below.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=[countgo]"></script>
    <noscript>    
     <a href="[countgo]http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=[timestamp]" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • TradeDoubler example

    What you will do in order to track clicks is add the ";click=" and $$&url= into the redirect string as below. [timestamp] is exchanged for [TD_RRANDOM].

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=$$&url="></script><noscript>
     <a href="$$&url=http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=[TD_RRANDOM]" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • Turn example

    What you will do in order to track clicks is add the ";click=" and XXCLICK_FORM_URL[]XX into the redirect string as below. [timestamp] is exchanged for $!{AD_CALL_ID}.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=XXCLICK_FORM_URL[]XX"></script>
    <noscript>    
     <a href="XXCLICK_FORM_URL[]XXhttp://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=$!{AD_CALL_ID}" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.

     

  • Zedo example

    What you will do in order to track clicks is add the ";click=" and %ZZECLICK% into the redirect string as below. [timestamp] is exchanged for %t.

    <script language="javascript" src="http://track.adform.net/adfscript/?bn=14966567;click=%ZZECLICK%"></script><noscript>
     <a href="%ZZECLICK%http://track.adform.net/c/?bn=14966567;c=0" target="_blank">
      <img src="http://track.adform.net/adfserve/?bn=14966567;srctype=4;ord=%t" border="0" width="468" height="60" alt="">
     </a>
    </noscript>

    Note: this describes the usage of external non Adform related systems and please check respective documentation for most up to date information.