Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Leanplum Source


Source Info
  • The Leanplum Source is an Event Cloud 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.
(warning)

This Source is supported in US data processing regions.

This Source is only supported in workspaces configured to process data in the US region. Workspaces configured with data processing regions outside of the US cannot connect to this source. For more information, see Regional Segment.

Leanplum(link takes you to an external page) 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.

(information)

Info

This page is about the Leanplum Segment source, which sends data to Segment. For the Leanplum destination, which receives data from Segment, see the Leanplum Segment destination docs.


Getting started

getting-started page anchor

Leanplum calls the Source integration "Segment Feed" - this is the name you will see in their dashboard and documentation.

  1. From the Segment Sources page click Add Source.
  2. Search for "Leanplum" in the Sources Catalog click Connect.
  3. 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).
  4. On the Overview** page, you will see the Segment write key. Copy it.
  5. Go to your Leanplum dashboard. In the navigation, under More, find your Partner Integrations page. Open the configuration for Segment.
  6. Find the "Feed" setup, paste your Segment write key there and click Save.

The following table lists events Leanplum sends to Segment.

CollectionTypeDescription
Email BouncedEventFires when an email to a user has bounced
Email DeliveredEventFires when an email has been delivered
Email Link ClickedEventFires when an email link has been clicked
Email Marked as SpamEventFires when an email has been marked as spam
Email OpenedEventFires when an email has been opened
UnsubscribedEventFires when a user unsubscribes from emails
Push Notification TappedEventFires when a push notification has been opened
Push Notification BouncedEventFires when a push notification bounces
Experiment ViewedEventFires on A/B test impression

The following list of event properties might be associated with each Leanplum event.

PropertyTypeDescription
email_idStringThe unique email ID
message_idStringThe Leanplum message ID
email_subjectStringThe email subject as set up in Leanplum
campaign_idString(Optional) Leanplum Campaign ID if the message is part of a campaign
campaign_nameString(Optional) Leanplum Campaign Name if the message is part of a campaign
campaign.mediumStringSent for push messages only
experiment_idStringThe ID of the A/B test in Leanplum
experiment_nameStringThe name of the A/B test as specified in Leanplum

Now that your source is set up, you can connect it to destinations.

Log in to 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.


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 Engage; which you can then turn into precisely targeted personalized messages. Learn more at the Leanplum Destination docs.