Introduction
Treasure Data is a customer data platform (CDP) that collects and routes information from multiple sources to a variety of other locations in your marketing stack.
MoEngage <> Treasure Data
MoEngage and Treasure Data bi-directional integration allows you to write job results from Treasure Data directly to MoEngage. You can
- Forward user actions and events from Treasure Data to MoEngage
- Create or update users in MoEngage
- Send MoEngage campaign interaction data back to Treasure Data
Integration
library_add_check |
Prerequisites
|
Use cases
- You can synchronize your consolidated customer profiles from Treasure Data into MoEngage to build-out target segments. Treasure Data supports first-party cookie data, Mobile IDs, third-party systems like your CRM, and many more.
- You can also send back MoEngage campaign interaction data back to Treasure Data
Please note that the integration is not available directly. Please reach out to your Customer Success Managers to get it enabled!
Step 1: Get your MoEngage endpoint
Speak to your MoEngage Customer Success Manager to help you get a dedicated endpoint for TreasureData. You will be getting two separate endpoints for importing Users and Events.
Step 2: Configure MoEngage connection on Treasure Data
Repeat the following steps for each of the two URLs given to you:
- On your Treasure Data dashboard, navigate to Catalog.
- Search for HTTP and click on Create Authentication and enter the MoEngage endpoints.
Set up MoEngage destination
- Enter MoEngage user API endpoints
- Select HTTPs and enter the following details:
Field Description HTTPS
Check this box.
Host
Enter the URL part before "/v1/partner/treasuredata/events/?configName=" excluding https://.
Port Leave this as blank.
Basic auth username
The Workspace ID of your MoEngage account is available at Settings -> Account -> APIs -> Workspace ID.
The Data API ID and the Workspace ID of your MoEngage account are the same.
Basic auth password
The secret key is the Data API Key. The Data API key of your MoEngage account is available at Settings -> Account -> APIs -> API Keys -> Data.
- Click Continue and save it as moengage_event_sync or moengage_user_sync.
- Enter MoEngage user API endpoints
Step 3: Define your query
On your Treasure Data dashboard,
- Navigate to Data Workbench >> Queries and select a query you would like to export data.
- Run this query to validate the result set. Ensure that the query has a
customer_id
column. This will be used to identify users in MoEngage.
Note: For users using HIVE to build queries, HIVE requires that any columns or tables that begin with an underscore be wrapped by backquotes, such as _merge_objects. - Select Export Results and select an existing integration authentication.
- Enter the remaining part of your MoEngage URL after "moengage.com":
Read more on pre-formatted fields, example queries, parameter details, and query export job scheduling on Treasure Data here.
Step 4: Validate data on MoEngage
You can search for the new users and see users and events getting created.
Send campaign interaction data back to Treasure Data
Treasure Data users can ingest data through its Postback APIs via Connector Campaigns. To create a connector campaign on MoEngage,
1. Navigate to Create Campaign > Connectors > Custom and choose the delivery type most suitable to your needs
2. In step 2 of the campaign, connect to the Postback APIs. First, go to your Treasure Data dashboard to generate your Write-Only Keys.
- Method: POST
- URL:
<treasure-data-base-url>/postback/v3/event/{database}/{table}
You can get your Treasure Data's Base URL from here. Look for the Postback service URLs for your region. - Headers:
- Body:
{ "col1": "val1", "col2": "val2", ... }
Note that
- You need to pass
"key": "value"
pairs for each of your columns. The key is the column name in your table. - Treasure Data does not support bulk operations at the moment.
Preview your request
At this point, your campaign should be ready to test and send. You can also test your connector configuration using the Test functionality available in Step 2 of Create Connector Campaign.
You can go ahead and Publish the campaign.