AdsFac

The following presents a guideline on how AdsFac 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 AdsFac that looks similar to the following example:

<script language=’JavaScript’ type=’text/javascript’ src=’https://adsfac.eu/fsr/LPR/vrm3.js’></script>
<script language=’JavaScript’ type=’text/javascript’>
function vrm3_site_define(){
vrm3_hide_tags=’’; // if required Insert HTML tag types to hide/show
vrm3_hide_ids=’’; // if required Insert HTML tag ids to hide/show
vrm3_redirect_url=’’;
vrm3_impression_url=’’;
}
</script>
<script language=’JavaScript’ id=’vrm3_ad_def’ type=’text/javascript’ src=’https://adsfac.eu/fsr/LPR/script.aspx?cc=HTR087.5878.1’>
</script>
<noscript>
<a href=”https://adsfac.eu/link.asp?cc=HTR087.5878.1” target=”_blank”><img src=”https://adsfac.eu/ag.asp?cc=HTR087.5878.1&bk=1&ord=[timestamp]” width=”300” height=”250” border=”0” alt=””></a>
</noscript>

Modified Code

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

<script language=’JavaScript’ type=’text/javascript’ src=’https://adsfac.eu/fsr/LPR/vrm3.js’></script>
<script language=’JavaScript’ type=’text/javascript’>
function vrm3_site_define(){
vrm3_hide_tags=’’; // if required Insert HTML tag types to hide/show
vrm3_hide_ids=’’; // if required Insert HTML tag ids to hide/show
vrm3_redirect_url=’%%CLICK_URL_ESC%%’;
vrm3_impression_url=’’;
}
</script>
<script language=’JavaScript’ id=’vrm3_ad_def’ type=’text/javascript’ src=’https://adsfac.eu/fsr/LPR/script.aspx?cc=HTR087.5878.1’>
</script>
<noscript>
<a href=”%%CLICK_URL_UNESC%%https://adsfac.eu/link.asp?cc=HTR087.5878.1” target=”_blank”><img src=”https://adsfac.eu/ag.asp?cc=HTR087.5878.1&bk=1&ord=%%CACHEBUSTER%%” width=”300” height=”250” border=”0” alt=””></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>