Create mixpanel.js

generic mixpanel.js that tracks close, purchase, variation click events and remembers the first clicked variation as the "preferred" one