revolunet / angular-google-analytics

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

Enable explicit setting of protocol #113

Closed soerface closed 8 years ago

soerface commented 8 years ago

var scriptSource = '//www.google-analytics.com/analytics.js'; (https://github.com/revolunet/angular-google-analytics/blob/master/src/angular-google-analytics.js#L396)

When the angular application is a native mobile application (e.g. by using cordova), the protocol will be file:// since its beeing executed inside a webview. I see no possibility to set the protocol explicitly to https://

This issue is kind of related with issue #31

justinsa commented 8 years ago

Released to Bower. Pending release to NPM.