Support » Plugin: Google Analytics for WordPress by MonsterInsights » Missing category on download script

  • Hi there,
    I’ve enabled download tracking via the plugin. Just looking at the code attached to each PDF file now, it seems to be missing the category argument – ‘PDF’. When you set up the tracking manually I believe this is a mandatory field?

    That is, the plugin does this:
    <a href="http://linkname.pdf" onclick="javascript:_gaq.push(['_trackEvent','download','http://linkname.pdf']);" target="_blank">Link Name Goes Here</a>

    Should it do this? :
    <a href="http://linkname.pdf" onclick="javascript:_gaq.push(['_trackEvent','PDF','download','http://linkname.pdf']);" target="_blank">Link Name Goes Here</a>

    Or does it not matter. Thanks.

  • The topic ‘Missing category on download script’ is closed to new replies.