Google tracking for a specific bloc

Permalink
Hi Guys,

Another good one for the grey matter. We have a specific piece of google tracking that we want to place behind a booking form.

This booking form points to a third party booking engine. We want to be able to track amount of people clicking to go through to the third party site.

Like I said we have the code, however when we have placed this code using all the suggested channels, it's not pulling through the recorded data - it still reports as 0.

Does anyone have any suggestions?

Thanks
Gino

 
Mnkras replied on at Permalink Reply
Mnkras
can you post the code your using?
photolinkC5staging replied on at Permalink Reply
hi Mnkras, just seen your message. We have used the script below, and obviously added our ID;
<script type="text/javascript">
function recordOutboundLink(link, category, action) {
try {
var pageTracker=_gat._getTracker("UA-XXXXX-X");
pageTracker._trackEvent(category, action);
setTimeout('document.location = "' + link.href + '"', 100)
}catch(err){}
}
</script>

Any thoughts?
Thanks
Gino