Uncategorized

Community Tip: More Powerful Notification Targeting

In this Community Tip, we’ll show you how to get more granular with your Notifications in Mixpanel People. We’ll help you get better targeting for your emails, in-apps, surveys and more by moving beyond Booleans (“True” or “False”) with advanced data types like dates and counts.

Limits of True and False

Mixpanel Notifications allow you to target your users based on the properties you are storing about them. One common approach to people properties is to store information as True and False values. For example, in a fictional project below for an application that allows you to save documents online, we could set a people property that tells us whether or not a user has added a document:

js
mixpanel.people.set({"Document Added": "True"});

In this case, we could create a notification that targets only the users who added a document, or only those who did not. But that’s about it.

What’s awesome about properties on Mixpanel is that they accept a wide range of data types. Depending on the type of data we store in a property, we can boost our notifications to attain even more granular targeting.

Send Counts and Dates

Here are two ways in which we can revamp our people properties to get more out of notifications:

The first option is to use an incremental people property that tracks how many times a user performs an action.

js
mixpanel.people.increment("Number of Documents Added");

We can also pass a number other than ‘1’ to increment.

js
mixpanel.people.increment("Number of Documents Added", 4);

By going beyond booleans, we could set up notifications to target user groups based on the total number of notifications they have sent out. For example, we could send a notification to all users who have added at least five documents in order to reward those who are most active. On the other hand, we could send a notification to all users who have added fewer than two documents in order to encourage them to be more active.

Another alternative is to set a People property that tracks the most recent time that a user performed an action.

mixpanel.people.set({"Doc Added Date": "YYYY-MM-DDTHH:MM:SS"});

Note: this is the easily generated with a JavaScript function:

js
mixpanel.people.set({"Doc Added Date": new Date().toISOString()});

In this case, we could set up time-based notifications. For example, we could create a notification that goes out to any user who has gone two weeks without adding a document. This could help us re-engage inactive users to reach higher retention.

Effective notifications are a key part of maintaining an engaged user base. So, why not make them as powerful as possible?

Need any help setting up your own notifications? Email us at support@mixpanel.com to speak to someone smart, quickly.

Get the latest from Mixpanel
This field is required.