Search documentation...

K

MoEngage

Build more robust campaigns on MoEngage with up-to-date customer data from your data warehouse

Overview

Build more robust campaigns on Moengage with up-to-date customer data from your data warehouse.

Why your user's profile and activity should be based on the warehouse

You want to provide relevant, timely interactions to your customers, and doing so heavily relies on data on Moengage to be accurate and fresh. By automatically syncing customer data from your data warehouse into Moengage, you no longer need to worry about data consistency because data is no longer flowing in from multiple sources in different formats, and you can focus on building world-class customer experiences.

Getting Started

Step 1: Connect to Moengage

Retrieve your API Token from Moengage.

  1. Log in to Moengage.
  2. Visit Moengage's API Settings Page.
  3. Copy your Data API ID and your Data API Key.

The api key on the Moengage dashboard

Add Moengage as a destination in Hightouch

  1. Log in to Hightouch or create a free Hightouch account
  2. Click on Destinations in the left sidebar
  3. Click on Add destination in the top right corner
  4. Select Moengage in the destination catalog and click Continue to proceed
  5. Paste your Data API ID and your Data API Key into their respective fields and click Continue to proceed
  6. Give your destination a name and unique slug (e.g., Moengage Production” and Moengage-production)
  7. Click Finish to create your Moengage destination!

Step 2: Connect to your data source

Hightouch sits on top of your data warehouse and can read from Snowflake, Redshift, BigQuery, Databricks, Postgres, MySQL, and many other data sources. You can even fetch data from Google Sheets and Airtable. Hightouch can help activate your data wherever it resides.

We've written dedicated guides for each supported data source. Take your pick:

If you're missing the credentials necessary to connect to your data source, try inviting your teammates to Hightouch. You can have unlimited collaborators in your workspace!

Connect to a sample database instead

Waiting for credentials to your data warehouse? No problem! You can connect to one of our sample databases to get started right away. For the rest of this tutorial, we'll use our demo Postgres database, which contains a users table with names, emails, locations, and other user attributes. This sample source is available when you log in for the first time—no setup required.

Next, we'll write a SQL query to define which users should be synced to our Moengage customers resource. You can follow the same pattern to sync to other support Moengage resources,

Step 3: Create a model

In Hightouch, a model represents a query that filters or transforms the records in your data source. Models are used to determine exactly which records to sync between sources and destinations.

When you connect to a data warehouse, your models will probably be written in SQL. You can also import models from tools like dbt and Looker.

In this example, we'll keep it simple. Suppose you want to sync all your customers to Moengage. To accomplish this, you'll want to create a model that looks like this:

SELECT * FROM users;
  1. Click on Models in the left sidebar.
  2. Click on Add model in the top right corner.
  3. Select Demo Database as your source and click Continue to proceed.
  4. Select SQL Editor as your modeling method.
  5. Paste the SQL query from above into the editor on the left side of the page.
  6. Click Preview to execute the query.
  7. Click Continue to proceed.
  8. Give your model a name and unique slug (e.g., "All Users" and all-users).
  9. Select id as the primary key for your model.
  10. Click Finish to create your model!

We just created a model using a SQL query that retrieves all our current users. Next, we'll configure our sync to add these users to Moengage.

Step 4: Create a sync

  1. Click on Syncs in the left sidebar.
  2. Click on Add sync in the top right corner.
  3. Select All Users as your model and click Continue to proceed.
  4. Select Moengage as your destination and click Continue to proceed.

Sync Configuartion

Syncing Customers' Object

Object Selection

Hightouch supports syncing to the following Moengage resources:

  • Customers

Sync Modes

This integration supports Upsert.

In Upsert mode, records that are not found in Moengage given the provided identifier will be inserted. And existing records will be updated.

Record Matching

Records can be matched from your source to your Moengage workspace by Moengage Id.

Field Mapping

Hightouch allows you to sync columns from your source to the supported Moengage resouces.

Custom Field Mapping

Hightouch allows you to set custom attributes. Any mappings from this section will be synced as additional attributes. MoEngage expects custom properties to follow a snake_case format.

Delete Records

When the Hightouch sync engine recognizes that a record has been removed from your source, you can either:

  • Do Nothing.
  • Clear fields that are being synced in the destination.

Syncing Customer Events

Setting an Event Name

When creating a sync for events, you can specify the name of the event being tracked. You can either input a static name, or use a column from your model.

Setting an Event Timestamp

Select a column that is used as the timestamp of when the event happened. If this field is empty, Hightouch will use the time of when the event arrives at the server.

Record Matching

Records can be matched from your source to your Moengage workspace by Moengage Id.

Field Mapping

Hightouch allows you to sync columns from your source to the supported Moengage resouces.

Custom Field Mapping

Any mappings from this section will be synced as attributes in the event. MoEngage expects custom properties to follow a snake_case format.

Troubleshooting

Common errors

To date, our customers haven't experienced any errors while using the Moengage destination. If you run into any issues, please reach out to us. We are here to help!

Use the Hightouch debugger

Hightouch provides full visibility into the Moengage API calls made during each of your sync runs. We recommend reading our article on debugging tips and tricks.

Set up sync alerts

Hightouch can alert you of any sync issues via Slack, PagerDuty, SMS, and/or email. For details, please visit our article on alerting.

    Need help?

    Our team is relentlessly focused on your success. We're ready to jump on a call to help unblock you.

    • Connection issues with your data warehouse?
    • Confusing API responses from destination systems?
    • Unsupported destination objects or modes?
    • Help with complex SQL queries?

    Feature Requests?

    If you see something that's missing from our app, let us know and we'll work with you to build it!

    We want to hear your suggestions for new sources, destinations, and other features that would help you activate your data.

On this page

OverviewWhy your user's profile and activity should be based on the warehouseGetting StartedStep 1: Connect to MoengageStep 2: Connect to your data sourceStep 3: Create a modelStep 4: Create a syncSync ConfiguartionSyncing Customers' ObjectSyncing Customer EventsTroubleshootingCommon errorsUse the Hightouch debuggerSet up sync alerts

Was this page helpful?