javascript - MixPanel : mixpanel.track is logging event mulitiple times -


i trying track "create account event" of mixpanel. mixpanel integration have used javascript api.

following javascript code :

function trackaccountsuccess(email) {      mixpanel.track("create new account successful", {          "email": email      }); } 

this code logging event more 1 times even-though called 1 time while create account.

this issue solved.

actually in page 2 times mixpanel object initialized ( i.e. mixpanel.init(mixpaneltoken) method called. )

so removed multiple initialization , issue solved.


Comments