Google Analytics by Yoast
Missing category on download script (1 post)

  1. whatachamp
    Posted 3 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Analytics by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic