Google Analytics by Yoast
[resolved] Event Tracking for Downloads Stopped Working in April (3 posts)

  1. Josiah Sprague
    Posted 1 year ago #

    Before April, I had set up this plugin to track events for downloads on my site. Right around April first, all of the download events stopped tracking. Outbound links seem to be tracking fine. I checked my pages that have download links, and it seems that the event tracking JS code is missing, so I checked my settings in the plugin and it seems that everything is configured correctly;

    Track outbound clicks & downloads: is checked.

    Extensions of files to track as downloads: is set to doc,exe,js,pdf,ppt,tgz,zip,xls

    I don't see any other settings that should interfere with this, and the rest of the GA tracking seems to be working fine.

    As an example, the "Download Application" link on this page should have (and used to have) an event tracking code on it, but it doesn't: http://doulosdiscovery.org/opportunities/jobs/teaching/

    What else can I check?


  2. Josiah Sprague
    Posted 1 year ago #

    I have narrowed my issue down to only relative links. If I change the links on my site to include the http protocol as well as the domain, the tracking code is applied.

    Unfortunately, that is not a permanent solution, since I don't want to use absolute links for my downloads, so I still have to figure out a solution for applying the tracking code to relative links.

  3. Josiah Sprague
    Posted 1 year ago #

    Well, I did a little more reading, and it looks like relative URLs are actually bad practice. I was misinformed before, thinking that relative URLs were a good practice. Guess I'll be changing my links. And I doubt Yoast has plans to update the plugin to resolve this.


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