Event tracking not working? Could do with some help from someone with more experience

Discussion in 'Google Analytics' started by emmaburge, Jul 14, 2011.

  1. #1
    Hi all. I recently set up event tracking, to try and start tracking downloads, on this page: http://getronics-uk.com/knowledge-share/whitepapers.php

    Here's a snippet of the code i have used for each download (I've so far only added this code to the top few links on that page, to test them)

    <p>This document describes the Getronics position towards Virtual Desktop Infrastructure (VDI).</p>
    <p class="link"><a href="<? echo $dir; ?>downloads/Virtual-Desktop-Infrastructure.pdf" onClick="_gaq.push(['_trackEvent', 'download', 'case-study', 'Virtual-Desktop-Infrastructure']);">View the Whitepaper</a></p>

    I am pretty sure there are no further steps to setting up event tracking other than this.. i of course differ the Label value, to represent each download title, for each pdf.

    So I visited the site a day after I added this code and I downloaded the tracked PDFs. I made sure that there was nothing in place to filter out my action or my visit. 2 days later I checked and analytics has not recorded the event. The date I visited the site is shown on the report, so I assume this is not because Google is yet to get data for this particular date, and it's because either my implementation is incorrect or I have done something else wrong?

    I have also implemented and tested on a blank test page here, where i've stripped out all references to any javascript files or code surrounding the download links: http://getronics-uk.com/eventtracking-test.php

    Im a bit confused as I feel ive copied exactly what Google suggests in their event tracking documentation, and am wondering what i've missed here.. altogether, analytics is picking up data fine.
     
    emmaburge, Jul 14, 2011 IP