revolunet / angular-google-analytics

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

How can I turn off 'debug' mode #187

Closed 29er closed 7 years ago

29er commented 7 years ago

I am still seeing this when I run GA . In the console I am seeing ' Running analytics_debug.js. This script is intended for testing and debugging only.'

In my set up config I have this : AnalyticsProvider .delayScriptTag(true) .ignoreFirstPageLoad(true) .trackPages(true) .trackUrlParams(true) .setPageEvent('$stateChangeSuccess') .logAllCalls(false) .setDomainName('none') .enterDebugMode(false) .startOffline(false) .useECommerce(false, false)

I thought the enterDebugMode would disable this ?

Thanks

29er commented 7 years ago

nm figured it out :)

removed the .enterDebugMode(false) line