Customising Companion Code Template

This article shows how to customise the default companion code template when using a 3rd party tag from Adform. Similar alterations also need to be done for other 3rd party sources to get click tracking to work properly in Pulse.

Default code template that needs to be changed.

Default companion code template

To customise the default companion code template when using a 3rd party tag from Adform, follow these steps and highlights on the image below:

  1. Copy the blue part from the Adform companion tag and paste it over the two blue segments in the Default code template in Pulse.
  2. Copy the yellow part from the Adform companion tag and paste it over the two yellow segments in the Default code template in Pulse.
  3. Delete the red part of the default code template in Pulse.

You should now have something that looks like the Edited code template.

Adform companion code template customisation

Adform companion tag

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

Default code template

<script type="text/javascript"><!--//document.write('<a href="{clickurl}http://www.3rdparty-adserver.com?rnd={timestamp}" target="_blank">');
document.write('<img src="http://www.3rdparty-adserver.com/banner.png" border="0" />');
document.write('</a>');--></script><noscript><a href="{clickurl}http://www.3rdparty-adserver.com?rnd={timestamp}" target="_blank"><img src="http://www.3rdparty-adserver.com/banner.png" border="0" /></a></noscript>

Edited code template

<script type="text/javascript">document.write('<a href="{clickurl}http://track.adform.net/C/?bn=4057728;C=0?rnd={timestamp}" target="_blank">');
document.write('<img src="http://track.adform.net/adfserve/?bn=4057728;srctype=4;ord=[timestamp]" border="0" />');
document.write('</a>');</script><noscript><a href="{clickurl}http://track.adform.net/C/?bn=4057728;C=0?rnd={timestamp}" target="_blank"><img src="http://track.adform.net/adfserve/?bn=4057728;srctype=4;ord=[timestamp]" border="0" /></a></noscript>
<script language="javascript" src="http://track.adform.net/adfscript/?bn=4057728"></script>
https://help.ooyala.com/sites/all/libraries/dita/en/video-advertising/oadtech/knowledge_base/companion_code_template.html

Was this article helpful?