Question

how to create audiences and query them from server side API calls

  • 23 September 2020
  • 1 reply
  • 41 views

  • New Participant
  • 1 reply

I’d like to create many audiences of users based on interesting event data our clients are sending to mixpanel.

For instance our clients send events for each purchase/ usage of a particular functionality

I’d like to create audiences based on criteria such as:

All users who purchased product X within the last Y days. 
All users which are using feature X etc. 

On my server, given a userID, I’d like to get a list of all audiences this userID belongs to and perform some logic based on that target audience.

Is this possible?


1 reply

Userlevel 6
Badge +3

Hi @Avn ,

Based on what you are interested in doing, it sounds like you are in the right place! I’d recommend using Mixpanel cohorts to create the audiences that you are interested in analyzing. Here are a collection of help docs to get you started: https://help.mixpanel.com/hc/en-us/sections/115001615263-Cohorts

 

Mixpanel is intended to help you visualize and gather insights about your data, so I’d encourage you to start building reports within the product and then post in community when you get stuck so we can help you get the most out of the tool. 

 

Reply