Hello community, our team is trying to implement A...
# questions
p
Hello community, our team is trying to implement AB testing with mix panel, however when I try instantiate mix panel with const mixpanel = Mixpanel.init(“*******) I get mixpanel is undefined Then trying to track a users click doesn’t work, so when I add a .track() to a method I get mixpanel is undefined emitter.addWinListener(function(experimentName, variantName) { console.log(
Variant ${variantName} from ${experimentName} was clicked
) mixpanel.track(experimentName, { name: experimentName, variant: variantName }) }) I’ve turned on allow cookies from my browser like some people mention from stack over flow but that did not work either. I’ve tried async await but I get “‘await’ has no effect on the type of this expression.” Any ideas on how I can mix panel to instantiate? Thank you for your time and help.