Klipmart

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

JavaScript Code

Original Code

You should have received some JavaScript code from Klipmart that looks similar to the following example:

<script language="javascript">var obs_clk='__YOUR__CLICK__URL__';</script>
<script language="javascript" type="text/javascript" src="https://gfx.klipmart.com/klipmart/campaigns/jyd890/a/uys100_85468.js">
</script>
<noscript>
<img src="https://kt4.kliptracker.com/klipinsert4.gif?campid=47560&ktaction=2&ad_id=1" border=0 width=1 height=1>
<a href="https://kt4.kliptracker.com/klipinsert4.tux?campid=68452&ktaction=358&ad_id=2&redir=https://www.google.com/" target="_blank">
<img src="https://gfx.klipmart.com/klipmart/campaigns/jyd890/a/uys100_bg.jpg" border=0 width=300 height=250 alt="Example">
</a>
</noscript>

Modified Code

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

<script language="javascript">var obs_clk='%%CLICK_URL_UNESC%%';</script>
<script language="javascript" type="text/javascript" src="https://gfx.klipmart.com/klipmart/campaigns/jyd890/a/uys100_85468.js">
</script>
<noscript>
<img src="https://kt4.kliptracker.com/klipinsert4.gif?campid=47560&ktaction=2&ad_id=1" border=0 width=1 height=1>
<a href="%%CLICK_URL_UNESC%%https://kt4.kliptracker.com/klipinsert4.tux?campid=68452&ktaction=358&ad_id=2&redir=https://www.google.com/" target="_blank">
<img src="https://gfx.klipmart.com/klipmart/campaigns/jyd890/a/uys100_bg.jpg" border=0 width=300 height=250 alt="Example">
</a>
</noscript>

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>