Hi,

I have been trying to use the module for tracking downloads as well, but it didn't seem to work. After some experimentation and checking of the code it seems, that the problem is in downloadtracker.js. When it has determined that the link is internal, and checks for the file having the right extension, it uses this.trackDownload instead of just trackDownload, which seems to work. (I'm not an expert in JavaScript, but doesn't 'this' refer to the anchor tag, while trackDownload is just a local variable in the current function?)

This problem seems to be present in both the stable and the development releases.

Istvan

CommentFileSizeAuthor
google_analytics.patch565 bytesivaradi

Comments

budda’s picture

Assigned: Unassigned » budda
Status: Active » Fixed

Thanks applied.

budda’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

Moving to 6.x for fixing

budda’s picture

Assigned: budda » Unassigned
Status: Fixed » Reviewed & tested by the community
hass’s picture

Status: Reviewed & tested by the community » Fixed

Fixed for D6, too

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.