Introduction
With the MoEngage <> mParticle integration, all your user and event data that you are sending to mParticle will be sent to MoEngage via our server to server APIs.
Integration
library_add_check |
Prerequisites
|
Scope
Integration | Details |
---|---|
Server to server API | Also called cloud mode. The data is sent directly from mParticle servers to MoEngage servers. Note that you need integrate with MoEngage SDKs for messaging needs on Push and inApps. |
mParticle bundled kit |
Also called device mode. MoEngage does not support it currently. |
Server to server integration
mParticle forwards all data as events to MoEngage. MoEngage system then creates events or user attributes based on the event type and user identities.
warning |
Important Server-to-server integration does not support features such as In-Apps, Cards, Cards, or Push notifications. You need integrate with MoEngage SDKs if you are using these channels. |
Supported data types
Type | Details |
---|---|
mParticle input sources |
All mParticle input sources are supported- |
User Identities |
MoEngage allows you to export all MoEngage user attributes. For user identities, only these are supported- |
Event types |
The following event types are supported- - Commerce Events |
System Notification Types |
The following types are supported- |
Steps
Step 1. Setup MoEngage as output on mParticle
On mParticle dashboard,
- Navigate to Setup > Output
- Go to the Event tab. Click Add Event Output on top right.
- Search for MoEngage.
- In the pop up, provide the details of your MoEngage app.
Field Details Configuration name You can give any name to your configuration - eg. "MoEngage Prod" App ID The Workspace ID of your MoEngage account is available in the following navigations in the revamped and old UIs:
- Revamped UI: Settings -> Account -> APIs -> Workspace ID.
- Old UI: You can find this by navigating to Settings -> App Settings -> APIs -> Data API Settings.
The Data API ID and the Workspace ID of your MoEngage account are the same.
Secret key Secret key is the Data API Key.
The Data API key of your MoEngage account is available in the following navigations in the revamped and old UIs:- Revamped UI: Settings -> App Settings -> APIs -> API Keys -> Data
- Old UI: You can find this by navigating to Settings -> App Settings -> APIs -> Data API Settings.
Step 2: Setup a MoEngage connection
On your mParticle dashboard,
- Navigate to Connections >> Connect
- Select your desired input stream
- Select your MoEngage account as Output. This is the one that you had configured in the Step 1.
- Define the forwarding rules as per your requirement. Read more about data forwarding in mparticle here.
Once activated, you would start seeing your users and events on MoEngage dashboard.
Data mapping
Data mapping
mParticle data type | MoEngage data type | Details |
---|---|---|
Reserved user attributes | Standard MoEngage attributes | The reserved mParticle attributes are mapped to the standard MoEngage attributes. |
User identities | Standard MoEngage attributes | The user identities in mParticle are mapped to the standard MoEngage attributes. |
Other user attributes | Custom user attribute | Any user attributes passed to mParticle that fall outside of its reserved user attribute keys are logged in MoEngage as a custom attribute. User attributes support string, numerical, boolean, date, arrays and even objects. Note that object support is not supported out of the box. Please reach out to your MoEngage CSM or our support team to get it enabled. |
Custom event | Custom event | mParticle custom events are recognised by MoEngage as a custom event. Event attributes are forwarded as custom event attributes. Event attributes passed to MoEngage support string, numeric, boolean, and date objects. |
Purchase commerce event | Custom event |
Purchase commerce events are mapped to custom events in MoEngage.
|
Other commerce events | Custom event |
Other commerce events are mapped to custom events in MoEngage.
|
Other mParticle events | Not supported | Events like "session_start", "session_end", "custom_event", "screen_view", "error", "privacy_setting_change", "push_subscription", "application_state_transition", "push_message_receipt", "promotion_action", "impression", "attribution" are currently not supported. |
User update related events (user_atttribute_change) | User attributes are updated |
Each request on mParticle is triggered by an event. When a user attribute is changed, such as updating an email address,
|
Commerce Events mapping
- MoEngage does not support expanding of Commerce Events.
- The action name of product action events will be the event name in MoEngage.
- Please get in touch with your Customer Support Manager to understand how to add support for these events for your Workspace.
Product-based
Product-based commerce events measure all interactions with a product that can lead up to a purchase. Product events can include:
- Add to cart
- Remove from cart
- Checkout
- Checkout option
- Click
- View Detail
- Purchase
- Refund
- Add to wishlist
- Remove from wishlist
Common Event Attributes
Commerce Event Field | MoEngage Event Attribute | Data Type | Required | Description |
---|---|---|---|---|
|
|
string |
No |
The ID associated with the given transaction. |
|
|
object-array |
No |
The list of products. |
|
|
string |
No |
The name associated with the given product. |
|
|
string |
No |
The category associated with the given product. |
|
|
string |
No |
The brand associated with the given product. |
|
|
string |
No |
The total amount associated with the given product for the given transaction. |
|
|
string |
No |
A custom attribute associated with the given product. |
|
|
any |
No |
Custom attributes of the event. |
Purchase Event
Commerce Event Field | MoEngage Event Attribute | Data Type | Required | Description |
---|---|---|---|---|
|
|
string |
No |
Currency Code. |
|
|
object-array |
No |
The list of products. |
|
|
string |
No |
The ID associated with the given product. |
|
|
double |
No |
The price associated with 1 unit of the given product. |
|
|
int |
No |
The quantity associated with the given product. |
|
|
string |
No |
The total amount associated with the given transaction. |
|
|
string |
No |
The shipping amount associated with the given transaction. |
|
|
string |
No |
The tax amount associated with the given transaction. |
Non-Purchase Events
Commerce Event Field | MoEngage Event Attribute | Data Type | Required | Description |
---|---|---|---|---|
|
|
string |
No |
The ID associated with the given product. |
|
|
double |
No |
The price associated with 1 unit of the given product. |
|
|
int |
No |
The quantity associated with the given product. |
Promotion-based
Commerce Event Field | MoEngage Event Attribute | Data Type | Required | Description |
---|---|---|---|---|
|
|
string |
No |
The ID associated with the given promotion. |
|
|
string |
No |
The name associated with the given promotion. |
|
|
string |
No |
The creative is associated with the given promotion. |
|
|
string |
No |
The position associated with the given promotion. |
|
|
any |
No |
Custom attributes of the event. |
Impression-based
Commerce Event Field | MoEngage Event Attribute | Data Type | Required |
---|---|---|---|
|
|
string |
No |
|
|
string |
No |
|
|
string |
No |
|
|
string |
No |
|
|
string |
No |
|
|
string |
No |
|
|
string |
No |
|
|
string |
No |
|
|
any |
No |
|
|
any |
No |
User identity mapping
The following user identities are supported-
- Customer ID
- Email Address
- MPID (mParticle ID)
By default, the integration works on Customer ID. If you want to use any other identity (from the above), please reach out to your MoEngage CSM or MoEngage support team.
Frequently Asked Questions
Each request on mParticle is triggered by an event. When a user attribute is changed, such as updating an email address, mParticle triggers an event.
- If the change is tracked by SDKs, it is passed as "user_attribute_change" event to any output such as MoEngage. And MoEngage then updates the user attributes.
- If the user attributes are updated by a separate input feed (custom feed, partner feed, calculated attribute) on mParticle, these are not forwarded to any output such as MoEngage.
- In such cases, the new value is only passed to an output like MoEngage in the next event triggered by the user. If there is no future action, the updated values are not passed to MoEngage.
- It is generally recommended to create a separate “user attribute updated” event (dummy event) that only sends the specific user attribute(s) that have to been updated in MoEngage.
MoEngage accepts events from any timeframe. So, you can resend historical data to mParticle and it will flow into MoEngage automatically.
If you already have the data on mParticle and want to forward it to MoEngage, mParticle has a way to replay the data. Please reach out to your mParticle POC to replay the historic data.
MoEngage integration only supports specific type of events. Refer to this section of the document to validate if the specific events are supported with the integration.
mParticle sends all the events to MoEngage in real time. However, we support a through put rate of 15k RPM (requests per minute). If your rate of sending is higher than the threshold limit, some of the events might be dropped.
Recommendations -
Short term- mParticle has a way to replay the data that was dropped by MoEngage due to higher throughput rate or system downtime. Please reach out to your mParticle POC to replay the historic data.
Long term- It is recommended to control the rate (max limit is 15k RPM) at which you are sending data to mParticle.
The format or naming change can be done directly on the mParticle platform using mParticle Rules. You can directly work with your mParticle POC to enable and define rules for any attribute.