MoEngage Destination

Introduction

With the MoEngage Destination on Segment, you can forward your Users, Events, and Audiences (Segment Engage) to MoEngage and run personalized campaigns targeting them. Currently, MoEngage offers two modes of integration with Segment:

Integration mode MoEngage Features
Side-by-side
(Device mode)
Device mode enables all MoEngage capabilities for your mobile app and also forwards all data to MoEngage directly from your mobile app. This is the preferred mode.
Server-to-server
(Cloud mode)
Cloud mode is recommended for sending offline data to MoEngage. The following are not supported:
  • Push Notifications
  • In-app Messaging
  • Cards
  • Onsite messaging

Note: Anonymous users and their events are supported only in the MoEngage (Actions) Destination.

 

info

Information

To use MoEngage with Segment, we strongly recommend you go ahead with the Device Mode connection, as all our capabilities are supported with Device Mode. However, you would always need to use Cloud Mode to send data to MoEngage using your server-side sources and offline data.

While MoEngage ingests data sent via Segment Cloud Mode connection, there are a few limitations with this approach as of now -

  • For using MoEngage Push Notifications and In-App Messaging - you would need to install the MoEngage SDKs separately.
  • If the connection mode is cloud mode, you cannot use MoEngage functionalities like Real-Time Triggers, On-site Messaging, and Smart In-App Messaging.

Based on your preferred mode of integration, we recommend using the following:

Integration mode Destination Recommended
Side-by-side
(Device mode)
MoEngage (Classic)
Server-to-server
(Cloud mode)
MoEngage (Actions)

Integration

library_add_check

Prerequisites

  • Login credentials for MoEngage and Segment.
  • Installed source and Segment source libraries- The origin of any data sent into Segment, such as mobile apps, websites, or backend servers. You must install the libraries into your app, site, or server before being able to set up a successful Source > Destination flow.

Step 1: Add MoEngage as the Destination

After your sources are successfully configured, you must establish MoEngage as a destination. The connection settings offer numerous ways to customize how data moves between MoEngage and Segment. To add MoEngage as the destination, perform the following steps:

  1. Log in to your Segment App.
  2. On the left navigation menu in the Segment dashboard, click Connections > Destinations.
  3. Click + Add Destination.
  4. Under Destinations, you can select MoEngage and MoEngage (Actions) based on your preferred destination.
MoEngage (Classic) MoEngage (Actions)

MoEngage (Classic)

The MoEngage or “MoEngage (Classic)” Destination allows you to forward Users and Events from Segment using either Segment’s Device-mode or Cloud-mode. To set up MoEngage:

  1. On the MoEngage Destination page, Click  Add Destination.
  2. Select Data Source and click Next.
  3. Based on your integration mode selected in Step 2, on the Setup page, enter the Destination name. Optional: If you previously integrated with the MoEngage destination, you can select to copy those settings here.
  4. Click Create Destination.
  5. On the Settings tab, enter the details of your MoEngage App and enable the connection to start forwarding data to MoEngage.

Step 2: Select the Integration type and Implement

The MoEngage (Classic) integration supports two connection modes for forwarding data from Segment to MoEngage:

  • Device Mode (Side-by-side): This mode enables all MoEngage capabilities for your mobile app and forwards all data directly from your mobile app to MoEngage. This is the preferred mode.
  • Cloud Mode (Server-to-server): This mode is recommended for sending offline data to MoEngage.

Device Mode (Side-by-side)

Device Mode is the preferred connection mode for using MoEngage with Segment. When configured with Device Mode, Segment forwards all track and identify requests directly to MoEngage via the user's device. This means your app makes separate requests to Segment and MoEngage, eliminating the need for you to explicitly send data to MoEngage. To use Device Mode on Android and iOS, integrate the MoEngage + Segment bundle. For your website data, select a Device Mode connection.

Under the Settings tab, enter the following details:

Entity Description
App ID To obtain your Workspace ID: Navigate to MoEngage Dashboard > Settings > General.
Debug Logging You must enable debug logs by turning on this option. This routes your data to the TEST environment in MoEngage.
Connection Mode
(You will see this option only for the JavaScript source)
Website, Android, & iOS: The default connection mode is Device Mode.
Server-side: The default connection mode is Cloud Mode.

For using the device mode connection and leveraging all MoEngage capabilities, you would need to follow the integration steps mentioned below:

iOS Android Web React Native

The MoEngage SDK you need to use will depend on which Segment SDK you use:

Segment SDK MoEngage SDK Preferred
Analytics Swift  For more information, refer to MoEngage Segment Swift  Preferred
Analytics iOS For more information, refer to MoEngage Segment iOS Legacy 

Cloud Mode (Server-to-server)

Cloud Mode integration is beneficial in the following scenarios:

  1. Forwarding data to MoEngage generated by Segment's server-side sources.
  2. Automatically sending data via Cloud Mode when the MoEngage + Segment code is not bundled on an Android or iOS device.

For more information, refer to Segment Sources, MoEngage Destination, and supported connection modes. 

library_add_check

Limitations

A few limitations exist when using Cloud Mode integration:

Segment transforms all your attributes (properties) from camelCase to snake_case before sending this data to MoEngage (only via Cloud Mode). This might result in duplicate attributes appearing on your MoEngage dashboard. This transformation does not occur when you use Device Mode.

 

Step 3: Test your integration

After your integration is configured, you must confirm that data is being sent to MoEngage correctly. First, perform some test actions in your app. Then, in the MoEngage dashboard, you can view your data in the recent events, segments, or analytics sections. To verify specific data, you can filter your users and events based on the custom event and attribute data.

Step9.png

Segment Replays

Segment Replay takes an archived copy of your Segment data and resends it to MoEngage. With this, you can import all historical data from Segment to MoEngage. For more information, contact your Segment CSM related to Segment Replays.

Segment Engage and Computed Traits

Using Segment Engage, you can create segments of users based on data you have already collected across various sources and sync them to MoEngage. For more information, refer to how to set up and sync Segment Personas and Computed Traits.

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?