One liners to use analytics librairies on your website
mixpanel.identify('284'); mixpanel.people.set({ $email: 'hi@gmail.com' }); mixpanel.register({ age: 28, gender: 'male' }); /* set common properties */
mixpanel
ga('create', 'UA-XXXX-Y', 'auto'); ga('create', 'UA-XXXX-Y', { userId: 'USER_ID' });
ga('send', 'pageview'); ga('send', 'pageview', { 'dimension15': 'My custom dimension' });
analytics.js
Collection of cheat sheets to setup & use various analytics services: Mixpanel, Google Analytics, Amplitude ...