Leanplum's user guides and developer documentation.

Leanplum Documentation

Leanplum's user guides, SDK setup, API docs, and more resources are here to help you get the most out of A/B testing, Campaigns, Messaging, and Analytics.

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 or email to users who clicked (or didn't click) a link in your email campaign.

Let's create a push notification or email for users who opened or clicked a link in a previous email.

  1. In the Message composer, select push notification or email.
  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 "[the email's name] Click or Open").
  6. Change the operator to is greater than.
  7. Set the value to 0.

This will send a push notification or email to any user who has opened or clicked a link in this email (in other words, a user who has triggered the Click event more than 0 times).

If you want to target users that did not click or open 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 "[the email's name] Click or Open").
  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". For example, "Welcome Email Sent").
  9. Set the operator to is greater than.
  10. Set the value to 1.

This will ensure you send a push notification only to users who were sent the email but didn't click any links, and not to users who didn't receive the initial email (because they would also have Email Click = 0).

You can create similar targets with other email events such as Opens and Bounces.

📘

Mind the gap!

There is a 2- to 4-hour delay between when the Click event occurs, and when it shows up in Leanplum analytics. Make sure you're targeting with this delay in mind. 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.

Updated 2 years ago



Using email behavior as targeting criteria


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.