Using email behavior as targeting criteria

Because email Delivery, Opens, Clicks and more are tracked as a Leanplum Events, you can use these Events as targeting criteria in other campaigns. You could, for example, send a push notification to users who did (or did not) click a link in your email campaign.

Let's create a push notification for users that clicked a link in a previous email.

  1. In the Message composer, select Push notification
  2. Update the message copy as desired 
  3. Under Target, click the All users dropdown to modify the target
  4. Select Behavioral > + Occurrences of event or state
  5. Select the click event (it will be titled "<your email's name> Click". e.g. "Welcome Click")
  6. Change the operator to is greater than
  7. Set the value to 0

This will send a single push notification to any user that has clicked a link in this email (i.e. a user that has triggered the Click event more than 0 times). 

If you want to target users that did not click the link, you could do something like this:

  1. Under Target, click the All users dropdown to modify the target
  2. Select Behavioral > + Occurrences of event or state
  3. Select the click event (it will be titled "<your email's name> Click". e.g. "Welcome Click")
  4. Change the operator to is
  5. Set the value to 0
  6. Click the dropdown to add another target
  7. Select Behavioral > + Occurrences of event or state
  8. Select the Sent event for the same email (it will be titled "<your email's name> Sent". e.g. "Welcome Sent")
  9. Set the operator to is greater than
  10. Set the value to 1

This will ensure that you do not send a push notifications to every user that did not get the initial email (because they would also have Email Click = 0), and only to users that were sent the email but didn't click any links.

Note: There is a delay between the actual click and when the Event is tracked by Leanplum. This may prevent you from doing any real-time targeting, such as showing an in-app message immediately after an email link is clicked. However, you can still do targeting with a higher tolerance for delays. For example, you could create a campaign that triggers a push notification to be sent 1 day after a user clicks a link in your email. 

You can create similar targets with other email events like Opens, Bounces, etc.


Was this article helpful?
Have more questions? Submit a request