revolunet / angular-google-analytics

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

Analytics.registerScriptTags and Analytics.registerTrackers are undefined #191

Closed igorjacauna closed 7 years ago

igorjacauna commented 7 years ago

I'm using version 1.1.8 and when use AnalyticsProvider.delayScriptTag(true); and after try call

Analytics.registerScriptTags();
Analytics.registerTrackers();

They are undefined.

I guess the files into distdirectory are outdated. I searched by registerScriptTagsand registerScriptTags in angular-google-analytics.js and angular-google-analytics.min.js files. No success.

justinsa commented 7 years ago

Hey @igorjacauna - the files in the dist folder are very much out-of-date. I will look at updating those with the grunt build script. Most people use npm, bower, or nuget. You can also use the index.js file in the root folder for the meantime (and just rename it).

igorjacauna commented 7 years ago

Hi! I use bower, and in the file bower.json the main reference is to dist folder. So, when I builded my project, it imported from out-of-date dist folder.

justinsa commented 7 years ago

Ah! Thanks for letting us know. We will get this fixed ASAP.

justinsa commented 7 years ago

This is now updated with a 1.1.9 release tag.