I am new to the mixpanel, i have to use two instances of mixpanel in same project but trouble while integrating 2 instances in same project. I have found this link https://developer.mixpanel.com/docs/javascript but its not working in my case.
i have used below code:
mixpanel.init(token);
mixpanel.init(token, {}, ‘library_name’);
while using track like this
mixpanel.track(‘page’, {object});
mixpanel.library_name.track(‘page’, {object});
the above code is not working and giving error on mixpanel.library_name not found.
Please help me here. Thanks in advance!