PowerlineApp / powerline-mobile

Other
4 stars 16 forks source link

MixPanel Integration #477

Open jterps08 opened 7 years ago

jterps08 commented 7 years ago

Leveraging the MixPanel js library, we need to track events for the below events within the application.

Tracking these events should be as easy as adding one line of code to each of the already-existing actions

<script type="text/javascript">
    mixpanel.track("Video played", {
        "Video length": 213,
        "id": "hY7gQr0"
    });
</script>

https://mixpanel.com/help/reference/http

Tracked Event (Properties) ... Video Played (Video length, id)

  1. Register with Facebook
  2. Register with Email
  3. User login (deviceType)
  4. User logout (deviceType)
  5. Create New User Post (destination)
  6. Create New User Petition (destination)
  7. Create New Poll (destination)
  8. Create New Discussion (destination)
  9. Create New Fundraiser (destination)
  10. Create New Event (destination)
  11. Create New Announcement (destination)
  12. Open Social Activity Feed
  13. Create Group (groupType)
  14. Create Comment
  15. Upvote/Downvote a Comment
  16. Approve Follower from Social Activity Feed
  17. Sign Petition from Newsfeed
  18. Sign Petition from Item Detail Screen
  19. Upvote/Downvote Post from Newsfeed
  20. Upvote/Downvote Post from Item Detail Screen
  21. Follow Someone from Newsfeed
  22. Follow Someone from My Influences Screen

where deviceType is Android or iOS or unknown where destination is group name (e.g. USA or Save the Whales) where groupType is the Group Type from registration form

Items 17-22 may not be easily tracked (newsfeed vs Item Detail screen) using API, so 17/19/21 is okay.

igaponov commented 7 years ago

@jterps08 it looks like frontend issue.