Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External link URL not recorded in Google Analytics #137

Open
skleinfeldt opened this issue May 6, 2017 · 0 comments
Open

External link URL not recorded in Google Analytics #137

skleinfeldt opened this issue May 6, 2017 · 0 comments

Comments

@skleinfeldt
Copy link

collective.googleanalytics has External Links and File Downloads plugins enabled.

Downloading a file (https://jazkarta.com/projects/volunteer-management-system "Download Case Study") successfully records a Google Analytics event with Category = File, Action = Download, and Label = URL of the PDF file. I think the relevant JS line on that page is
_gaq.push(['_trackEvent', 'File', 'Download', $(this).attr('href')]);

Clicking the external link on the same page ("View Website") successfully records a Google Analytics event with Category = External, Action = Link, however Label is not set. (It should contain the URL of the external link.) I think the relevant (and suspicious looking) JS line on that page is
_gaq.push(['_trackEvent', 'External', 'Link', jQuery(this).attr('href')]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant