WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics for WordPress
Missing category on download script (1 post)

  1. whatachamp
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic