analytics.js-loader
Version:
Asynchronously load segment.com analytics.js with an npm module
30 lines (16 loc) • 601 B
Markdown
* fix loader to compensate for segment queue object
* use https: protocol by default
- segment script is loaded from a secure request if current protocol is not http: (for chrome-extension: for example)
* add reset method
* fix loader to not pollute global scope
- the function returns the analytics object now instead of messing with globals
* add skipPageCall param
* fix snippet integration, do no try to be smart
* initial