Analytics libraries cheatsheet


mixpanel.people.set({ $email: '' });
mixpanel.register({ age: 28, gender: 'male' }); /* set common properties */

Google Analytics’s analytics.js

ga('create', 'UA-XXXX-Y', 'auto');
ga('create', 'UA-XXXX-Y', { userId: 'USER_ID' });
ga('send', 'pageview');
ga('send', 'pageview', { 'dimension15': 'My custom dimension' });
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *