Good to know: Event source
The Leanplum Source is an event source. This means that it sends data as events, which are behaviors or occurrences tied to a user and a point in time. Data from these sources can be loaded into your Segment warehouses, and also sent to Segment streaming destinations. Learn more about cloud sources.
Leanplum is a multi-channel customer engagement platform that helps Growth and Marketing teams to achieve their engagement and revenue goals.
When you add Leanplum as a Source, Segment starts collecting Leanplum engagement events (for example, Email Open, Push Delivered), which you can then connect to a destination of your choice or load in your data warehouse.
The Leanplum source integration is an event source, which means that it sends Leanplum engagements as events.
Collections represent the different messaging events that Leanplum sends to Segment as a streaming source. In your Segment warehouse, each collection gets its own table, as well as a tracks table that aggregates all the events into a single table.
This source is maintained by Leanplum. For any issues with the source, contact Leanplum Support.
Good to know: This page is about the Leanplum Segment source, which sends data into Segment. There’s also a page about the Leanplum Segment destination, which receives data from Segment!
Leanplum calls the Source integration “Segment Feed” - this is the name you will see in their dashboard and documentation.
- From the Segment Sources page click Add Source.
- Search for “Leanplum” in the Sources Catalog click “Connect”.
- Configure your source and give it a name. This also generates a schema, which creates a namespace you can query against in a warehouse. We recommend that you name your source to represent the environment you are setting up (for example, Prod, Dev, Staging)
- On the overview page you will see the Segment write key. Copy it.
- Go to your Leanplum dashboard. In the navigation, under “More”, find your Partner Integrations page. Open the configuration for Segment.
- Find the “Feed” setup, paste your Segment write key there and click “Save”.
Congratulations! The integration is up and running!
Below is a list of events Leanplum sends to Segment
|Email Bounced||Event||Fires when an email to a user has bounced|
|Email Delivered||Event||Fires when an email has been delivered|
|Email Link Clicked||Event||Fires when an email link has been clicked|
|Email Marked as Spam||Event||Fires when an email has been marked as spam|
|Email Opened||Event||Fires when an email has been opened|
|Unsubscribed||Event||Fires when a user unsubscribes from emails|
|Push Notification Tapped||Event||Fires when a push notification has been opened|
|Push Notification Bounced||Event||Fires when a push notification bounces|
|Experiment Viewed||Event||Fires on A/B test impression|
Below is a list of event properties, which might be associated with each Leanplum event
|email_id||String||The unique email ID|
|message_id||String||The Leanplum message ID|
|email_subject||String||The email subject as set up in Leanplum|
|campaign_id||String||(Optional) Leanplum Campaign ID if the message is part of a campaign|
|campaign_name||String||(Optional) Leanplum Campaign Name if the message is part of a campaign|
|campaign.medium||String||Sent for push messages only|
|experiment_id||String||The ID of the A/B test in Leanplum|
|experiment_name||String||The name of the A/B test as specified in Leanplum|
Now that your Source is set up, you can connect it to Destinations.
Log into your downstream tools and check to see that your events are populating and that they contain all the properties you expect. If all your events and properties are not showing up, refer to the Source docs for troubleshooting.
If you experience any issues with how the events arrive in Segment, contact the Leanplum team.
Send data to Leanplum
Segment and Leanplum work better together when connected bi-directionally. With the Leanplum Destination, you can send client-side or server-side data, as well as connect Personas; which you can then turn into precisely targeted personalized messages. Learn more at our Leanplum Destination docs.
This page was last modified: 28 Aug 2020
Questions? Problems? Need more info? Contact us, and we can help!