kuhnza / angular-mixpanel

Mixpanel module for Angular JS
MIT License
54 stars 29 forks source link

Added ability to turn off auto initialisation #8

Closed alexborisov closed 9 years ago

alexborisov commented 9 years ago

Mixpanel allows for more advanced options to be specified to the constructor. There are also use cases where you may wish to change internal mixpanel properties. For example you may wish to change the mixpanel.api_host to route requests through a proxy (for internal analytics).

This change allows the user to disable auto initialisation so that they can call $mixpanel.init() at their own discretion.