Amplitude Feed

When you activate the Amplitude Feed, Leanplum will automatically stream all Leanplum specific marketing events to your Amplitude project. All events will be tagged with the User ID and Device ID associated with the user at the time of the event.

Configuration

  1. Go to https://analytics.amplitude.com
  2. Create input feed - from the left pane open Manage data, create a project and name it
  3. Copy the token provided by Amplitude
  4. Go to Data Control > Partner Integrations > Amplitude
  5. Paste the token provided by Amplitude and save your changes

Make sure your user identities are matching in Leanplum and Amplitude. Otherwise, the integration may create data discrepancies.

🚧

Anonymous users

In case the user is anonymous, the User ID will be left blank and only Device ID will be passed to Amplitude.

Email Events

The following email events will be sent to Amplitude with the respective properties:

Email Send

{
  "event": "(Leanplum) Message Send",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Email"
  },
}

Email Delivered

{
  "event": "(Leanplum) Message Delivered",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Email"
  },
}

Email Open

{
  "event": "(Leanplum) Message Open",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Email"
  },
}

Email Bounce

{
  "event": "(Leanplum) Message Bounce",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Email"
  },
}

Email Clicked

{
  "event": "(Leanplum) Message Click",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Email"
  },
}

Email Marked as spam

{
  "event": "(Leanplum) Message Marked as spam",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Email"
  },
}

Email Unsubscribed

{
  "event": "(Leanplum) Message Unsubscribed",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Email"
  },
}

Push Events

The following push events will be sent to Amplitude with the respective properties:

Push Notification Send

{
  "event": "(Leanplum) Message Send",
  "properties": {
    "time": "timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Push"
  },
}

Push Notification Open

{
  "event": "(Leanplum) Message  Open",
  "properties": {
    "time": "timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Push"
  },
}

Push Notification Held Back

{
  "event": "(Leanplum) Message Held Back",
  "properties": {
    "time": "timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "Push"
  },
}

In-app Events

The following in-app events will be sent to Amplitude:

In-app Message View

{
  "event": "(Leanplum) Message View",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "In-app Message"
  },
}

In-app Message Held Back

{
  "event": "(Leanplum) Message Held Back",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "In-app Message"
  },
}

In-app Message Accept

{
  "event": "(Leanplum) Message Accept",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "In-app Message"
  },
}

In-app Message Submit

{
  "event": "(Leanplum) Message Submit",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "In-app Message"
  },
}

In-app Message Select

{
  "event": "(Leanplum) Message Select",
  "properties": {
    "time": "Timestamp of the event",
    "message_id": "Leanplum Message ID"
    "campaign_id": "(optional) Leanplum Campaign ID",
    "message_name": "Leanplum Message Name"
    "campaign_name": "(optional) Leanplum Campaign Name",
    "channel": "In-app Message"
  },
}

A/B Testing Events

For A/B tests, we will send the following event to Amplitude:

A/B Test Impression

{
  "event": "(Leanplum) A/B Test Impression",
  "properties": {
    "time": "Timestamp of the event",
    "AB Test ID": "Leanplum A/B test ID",
    "Variant ID": "Leanplum A/B test Variant ID"
  },
}

Did this page help you?