Deploying Convertro Tracking
Continuing in my series on discussing Convertro, I want to discuss actually launching a site with the code in place. I have touched on parts of the implementation, but today, I want to dive into the nuts and bolts of how to get the code in place.Since Convertro is a asynchronous tracking platform, the code can be placed anywhere and track user behavior accurately. There are two snippets of code that must reside in both the <head> and <body> tags. The head snippet initializes variables that the later <body> code will utilize. Due to the way that the code was created, there is ZERO chance of page load impact which is a huge plus.The below code is an example of what would be placed in the <head> tags:<script type=’text/javascript’>$CVO = [[ 'trackPage']];$CVO.account = ‘mysite.com’;$CVO.site = ‘site id’;$CVO.server = ‘sp1.convertro.com’;$CVO.atHead = new Date;</script>Above, the siteID is the site identifier that will be used to track the site(s) you wish to track. If you only have one site, you will more than likely put a “0″ here. The account is the domain that you will be placing this on (in this case mysite.com).This code also has nice additional functionality that allows Convertro to track and measure load times without the need for adding in additional tracking code.Next, you will need to add additional code to the <body> tag. This tag does the tracking work by loading the necessary module into an iframe container (dynamically). By doing this, Convertro is able to achieve a nearly 100% success rate with delivering their tag across all browsers. Below is an example of the <body> tag:<script type=’text/javascript’>(function(){try{$CVO.atBody = new Date;var rx = /(?:^|;s)__cvo_server=(.*?)(?:;s|$)/;if ($CVO.tserver=document.cookie.match(rx)||navigator.userAgent.match(rx))$CVO.tserver=$CVO.tserver[1];var el=document.createElement(“iframe”);el.src=’javascript:”"‘;el.style.position=’absolute’;el.style.left=’-2000px’;document.body.insertBefore(el, document.body.firstChild);var f = frames[frames.length - 1];if (f && f.document && f.document.write) {f.document.write(‘<html><head></head><body><script src=”‘+document.location.protocol+’//’+($CVO.tserver||$CVO.server)+’/trax/init/’+$CVO.account+’/'+$CVO.site+’”></script></body></html>’);f.document.close();}}catch(e){}})();</script>That’s it. Now you are all set to go for basic out of the box tracking via Convertro. For conversion level tracking, please read Tracking Conversion with Convertro, which will provide you with additional information on how to set this up in Convertro. I will also be adding in advanced level tracking via the tool in future postings to help you get the most out of this tool.
Written by:
Dorian D. Regester
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.


A+ would read again