2016-05-17

Has anyone had success tracking events in Google Analytics when a user exports a Highcharts visualization as a PDF, PNG, etc.?

I set up a test fiddle (see http://jsfiddle.net/brightmatrix/00wrak9v/) to try out the interactions with an existing website I manage that's using the universal Google Analytics script.

My problem is that none of the interactions are showing up in my Google Analytics dashboard, either under "Campaigns" or "Goals." The console log isn't showing any obvious errors, and I don't have any browser plug-ins that are blocking the fiddle from talking with Google. I've waited the suggested 24 hours for events to show up in the dashboard to no avail.

Here's a piece of the code I'm using. I'm defining my own export methods using the menuItems attribute. I have the GA tracking script defined elsewhere in the fiddle.

One thing I uncovered in some searching was setting up event tracking in the Google Analytics admin console (see http://www.wpbeginner.com/wp-tutorials/how-to-add-google-analytics-event-tracking-in-wordpress/). Is that necessary to capture these types of events?

I truly appreciate any guidance you all can provide!

Show more