Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // if the user is logged in, set their userId and userProperties
- if(userId){
- var userProperties = {
- 'joined': '04/15/2015',
- 'plan': 'Monthly', // options are Monthly, Yearly, Trial
- 'payment amount': , // options are 0, 19, 149 (maybe others?)
- 'username': 'jpetey7',
- 'email': 'jakedpete@gmail.com',
- 'first name': 'Jake',
- 'last name': 'Peterson',
- 'user type': 'Enthusiast' // options are Enthusiast, Teacher, Teacher in Training
- }
- amplitude.getInstance().setUserId('USER_ID_HERE');
- amplitude.getInstance().setUserProperties(userProperties);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement