Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Tracking actions using Mixpanel

Mohamad Nour Chawich edited this page Apr 25, 2016 · 4 revisions

This guide helps you as Shoutit app developer to start tracking in-app events using Mixpanel.

Mixpanel setup guides

Configuration

Environment Token
Production c9d0a1dc521ac1962840e565fa971574
Development d2de0109a8de7237dede66874c7b8951
Local a5774a99b9068ae66129859421ade687

First steps

These steps should be applied as soon as a user opens the app.

  1. user opens the app
  2. check if existing or new
  • if existing: call mixpanel.identify("USER_ID")
  • if new: do nothing
  1. send app_open event*
  • if existing: you are done
  • if new: continue with step 4
  1. send mixpanel_distinct_id along with signup data to the /oauth2/access_token endpoint

###app_open event properties

  • signed_user: equal to the boolean true or false. This property depends on whether the user opened the app is an existing one or not.
  • api_client: the API client it e.g shoutit-android, shoutit-ios and shoutit-web

Next steps (Not required)

Now the mixpanel object in your app is defined and ready to fire events that will be associated with the correct user. Check this Article about the in-app events to be sent.

External links

Clone this wiki locally