sparkartgroup-archive / sparkart.js

Easily interact with Sparkart's APIs via Javascript.
1 stars 0 forks source link

Add pageview tracking to embedded GA code #43

Closed pushred closed 11 years ago

pushred commented 11 years ago

In #41 we added asynchronous Google Analytics tracking code to sparkart.js in order to support the use of multiple trackers. However, we're missing a call to _trackPageview in this code. Originally I indicated that we should not feature this in the sparkart.js code, but now that we are initializing trackers here we will need to include it so as to avoid the same issue that lead to the code being embedded (the inability to fetch a list of instantiated trackers).