Analytics Cheat Sheet

From WikiOD

Here is the cheatsheat of Analytics and basic guide on how to use Analytics

Mixpanel[edit | edit source]

mixpanel.identify('284');
mixpanel.people.set({ $email: 'hi@gmail.com' });
mixpanel.register({ age: 28, gender: 'male' }); /* set common properties */

[[./mixpanel|mixpanel]] {: .-crosslink}

Google Analytics’s analytics.js[edit | edit source]

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|analytics.js]] {: .-crosslink}

Credit:rstacruz