Uncertainty looms over me as I question the correctness of my placement... Seeking guidance on this particular aspect...
An intricately designed web application that dynamically generates a roster of accessible resources, flawlessly processes file info variables... The anchor tags are adorned with code snippets as shown below:
<ul id="ul_4" class="resources_list fa-ul h_4">
<li>
<a onclick="var that=this;_gaq.push(['_trackEvent','Resources: Tools','Download','Policy template: Access to confidential information']);setTimeout(function(){location.href=that.href;},200);return false;" href="/file.cfm?f=402&type=resource">Policy template: Access to confidential information</a>
</li>
<li>
<a onclick="var that=this;_gaq.push(['_trackEvent','Resources: Tools','Download','Policy template: Client records']);setTimeout(function(){location.href=that.href;},200);return false;" href="/file.cfm?f=407&type=resource">Policy template: Client records</a>
</li>
<li>
<a onclick="var that=this;_gaq.push(['_trackEvent','Resources: Tools','Download','Policy template: Privacy']);setTimeout(function(){location.href=that.href;},200);return false;" href="/file.cfm?f=391&type=resource">Policy template: Privacy</a>
</li>
</ul>
Subsequently, my standard Google Analytics code follows as:
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345678-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Despite my persistent clicking on these links, the triggers seem unrecorded in Google Analytics... Even after a 24-hour waiting period... Could it be the faulty method of setting triggers for the links, or the erroneous trigger code referencing? Perhaps, should the initial Google Analytics urchin code be placed at the top of the page?
One thing certain is that the standard GA code functions well, showing activity on various other pages... But when it comes to the file downloads accessible through these links, the issue emerges... As a GA novice, I am open to all suggestions... What piece of the puzzle am I not grasping?
Appreciate any guidance extended in advance...