Version 5.0
AdvertServe User Manual :: v5.0

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


<noscript>
<a href="http://servedby.flashtalking.com/click/3/26035;557543;0;209;0/?ft_width=600&ft_height=90&url=3729836" target="_blank">
<img border="0" src="http://servedby.flashtalking.com/imp/3/26035;557543;205;gif;TransportTopicsUS;Enewsletter600x90April4/?"></a>
</noscript>
<script language="Javascript1.1" type="text/javascript">
var ftClick_557543= "";
var ftX = "";
var ftY = "";
var ftZ = "";
var ftOBA= 1;
var ftContent = "";
var ftCustom = "";
var ft600x90_OOBclickTrack = "";
var ftRandom = Math.random()*1000000;
var ftBuildTag1 = "<scr";
var ftBuildTag2 = "</";
if(typeof(ft_referrer)=="undefined"){var ft_referrer=(function(){var r="";if(window==top){r=window.location.href;}else{try{r=window.parent.location.href;}catch(e){}r=(r)?r:document.referrer;}while(escape(r).length>1500){r=r.substring(0,r.length-1);}return r;}());}
var ftDomain = (window==top)?"":document.referrer?"&ft_ifb=1&ft_domain="+escape(document.referrer.match("(?::q/q/)+([qw-]+(q.[qw-]+)+)(q/)?".replace(/q/g,unescape("%"+"5C")))[1]):"";
var ftTag = ftBuildTag1 + 'ipt language="javascript1.1" type="text/javascript" ';
ftTag += 'src="http://servedby.flashtalking.com/imp/3/26035;557543;201;js;TransportTopicsUS;Enewsletter600x90April4/?ftx='+ftX+'&fty='+ftY+'&ftadz='+ftZ+'&ftscw='+ftContent+'&ft_custom='+ftCustom+'&ftOBA='+ftOBA+ftDomain+'&ft_referrer='+escape(ft_referrer)
+'&cachebuster='+ftRandom+'" id="ftscript_600x90" name="ftscript_600x90"';
ftTag += '>' + ftBuildTag2 + 'script>';
document.write(ftTag);
</script>

Modified Code

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


<noscript>
<a href="%%CLICKLINK%%http://servedby.flashtalking.com/click/3/26035;557543;0;209;0/?ft_width=600&ft_height=90&url=3729836" target="_blank">
<img border="0" src="http://servedby.flashtalking.com/imp/3/26035;557543;205;gif;TransportTopicsUS;Enewsletter600x90April4/?"></a>
</noscript>
<script language="Javascript1.1" type="text/javascript">
var ftClick_557543= "%%CLICKTAG%%";
var ftX = "";
var ftY = "";
var ftZ = "";
var ftOBA= 1;
var ftContent = "";
var ftCustom = "";
var ft600x90_OOBclickTrack = "";
var ftRandom = Math.random()*1000000;
var ftBuildTag1 = "<scr";
var ftBuildTag2 = "</";
if(typeof(ft_referrer)=="undefined"){var ft_referrer=(function(){var r="";if(window==top){r=window.location.href;}else{try{r=window.parent.location.href;}catch(e){}r=(r)?r:document.referrer;}while(escape(r).length>1500){r=r.substring(0,r.length-1);}return r;}());}
var ftDomain = (window==top)?"":document.referrer?"&ft_ifb=1&ft_domain="+escape(document.referrer.match("(?::q/q/)+([qw-]+(q.[qw-]+)+)(q/)?".replace(/q/g,unescape("%"+"5C")))[1]):"";
var ftTag = ftBuildTag1 + 'ipt language="javascript1.1" type="text/javascript" ';
ftTag += 'src="http://servedby.flashtalking.com/imp/3/26035;557543;201;js;TransportTopicsUS;Enewsletter600x90April4/?ftx='+ftX+'&fty='+ftY+'&ftadz='+ftZ+'&ftscw='+ftContent+'&ft_custom='+ftCustom+'&ftOBA='+ftOBA+ftDomain+'&ft_referrer='+escape(ft_referrer)
+'&cachebuster='+ftRandom+'" id="ftscript_600x90" name="ftscript_600x90"';
ftTag += '>' + ftBuildTag2 + 'script>';
document.write(ftTag);
</script>

IFRAME Code

Original Code

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


<iframe src="http://servedby.flashtalking.com/imp/3/26035;557543;201;jsiframe;TransportTopicsUS;Enewsletter600x90April4/?ft_custom=&imageType=gif&ftDestID=3729836&ft_width=600&ft_height=90&click=&ftOBA=1&cachebuster=[CACHEBUSTER]" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="600" height="90">
<a href="http://servedby.flashtalking.com/click/3/26035;557543;0;209;0/?ft_width=600&ft_height=90&url=3729836" target="_blank">
<img border="0" src="http://servedby.flashtalking.com/imp/3/26035;557543;205;gif;TransportTopicsUS;Enewsletter600x90April4/?"></a>
</iframe>

Modified Code

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


<iframe src="http://servedby.flashtalking.com/imp/3/26035;557543;201;jsiframe;TransportTopicsUS;Enewsletter600x90April4/?ft_custom=&imageType=gif&ftDestID=3729836&ft_width=600&ft_height=90&click=%%CLICKTAG%%&ftOBA=1&cachebuster=[CACHEBUSTER]" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="600" height="90">
<a href="%%CLICKLINK%%http://servedby.flashtalking.com/click/3/26035;557543;0;209;0/?ft_width=600&ft_height=90&url=3729836" target="_blank">
<img border="0" src="http://servedby.flashtalking.com/imp/3/26035;557543;205;gif;TransportTopicsUS;Enewsletter600x90April4/?"></a>
</iframe>

Video Code

Original Code

You should have received some video code from Flashtalking that looks like the following:


<script language="Javascript1.1" type="text/javascript">
var ftClick = "";
var ft300x250_OOBclickTrack = "";
var ftRandom = Math.random()*1000000;
var ftBuildTag1 = "<scr";
var ftBuildTag2 = "</";
var ftTag = ftBuildTag1 + 'ipt language="javascript1.1" type="text/javascript" ';
ftTag += 'src="http://video.flashtalking.com/tags/3323/25/js/j-3323-25.js?click='+ftClick+'&cachebuster='+ftRandom+'"="ftscript_300x250" name="ftscript_300x250"';
ftTag += '">' + ftBuildTag2 + 'script>';
document.write(ftTag);
</script>
<noscript>
<a href="http://video.flashtalking.com/tags/3323/25/click/0-c_3323-25.html" target="_blank">
<img border="0" src="http://video.flashtalking.com/tags/3323/25/noscript/300x250.jpg"></a>
</noscript>

Modified Code

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


<script language="Javascript1.1" type="text/javascript">
var ftClick = "%%CLICKTAG%%";
var ft300x250_OOBclickTrack = "";
var ftRandom = Math.random()*1000000;
var ftBuildTag1 = "<scr";
var ftBuildTag2 = "</";
var ftTag = ftBuildTag1 + 'ipt language="javascript1.1" type="text/javascript" ';
ftTag += 'src="http://video.flashtalking.com/tags/3323/25/js/j-3323-25.js?click='+ftClick+'&cachebuster='+ftRandom+'"="ftscript_300x250" name="ftscript_300x250"';
ftTag += '">' + ftBuildTag2 + 'script>';
document.write(ftTag);
</script>
<noscript>
<a href="%%CLICKLINK%%http://video.flashtalking.com/tags/3323/25/click/0-c_3323-25.html" target="_blank">
<img border="0" src="http://video.flashtalking.com/tags/3323/25/noscript/300x250.jpg"></a>
</noscript>