revolunet / angular-google-analytics

Google Analytics tracking for your AngularJS apps
MIT License
652 stars 172 forks source link

Why the script is created as ga and not as __gaTracker ? #165

Closed giorgiodg closed 8 years ago

giorgiodg commented 8 years ago

Hello, I've noticed that you load the GA script and put it into a window variable called ga:

})(window,document,'script',scriptSource,'ga');

instead of the standard __gaTracker as Google suggests. Is there any reason of doing that? The side effect is that another third-party script wants to get some information from the Analytics account and it's not able to retrieve because it can't find the __gaTracker variable into the window

giorgiodg commented 8 years ago

My fault, Google Analytics standard is 'ga' and not '__gaTracker'