pushtell / react-ab-test

A/B testing React components and debug tools. Isomorphic with a simple, universal interface. Well documented and lightweight. Tested in popular browsers and Node.js. Includes helpers for Mixpanel and Segment.com.
MIT License
752 stars 112 forks source link

Enabling Mixpanel helper breaks mixpanel.track() #38

Open joeyfigaro opened 7 years ago

joeyfigaro commented 7 years ago

Table of Contents

Expected Behavior

After enabling the provided Mixpanel helper, mixpanel.track() should work.

Current Behavior

After enabling the Mixpanel helper, the mixpanel global is a different shape entirely - and doesn't have a track method.

working mixpanel global

error/global after enabling helper

Possible Solution

Steps to Reproduce (for bugs)

  1. check existing mixpanel global prior to enabling the library's mixpanel helper
  2. enable library's mixpanel helper
  3. check error in console regarding missing track method/mixpanel global

Context

Can't use the helper, and will have to set up my mixpanel events manually. Not the end of the world.

Your Environment