Skip to main content

Introduction

Segment is a customer data platform that helps you collect, clean, and activate your customer data. Using MoEngage Source on Segment, you can forward all your campaign interaction events on MoEngage to Segment for further processing and analysis.

Benefits of Using MoEngage Source

  • Evolve your team’s engagement and marketing efforts by sending all customer data in one place.
  • You can combine MoEngage data with the event data already flowing into Segment.
  • MoEngage Source will enable you to forward these events to your destinations or warehouses.
  • Get a holistic report of your engagement and marketing efforts.

Integration

  • Login credentials for MoEngage and Segment.
  • Exports to Segment make use of MoEngage Streams, which is an add-on.

Step 1: Add a New MoEngage Source on Segment

  1. From your workspace’s Sources catalog page click Add Source.
  2. Search for “MoEngage” in the Sources Catalog, select MoEngage, and click Add Source.
  3. On the next screen, give the Source a nickname and configure any other settings.
    • The nickname is used as a label in the Segment app, and Segment creates a related schema name in your warehouse. The nickname can be anything, but we recommend using something that reflects the source itself and distinguishes amongst your environments (for example, MoEngage_Prod,MoEngage_Staging,MoEngage_Dev).
  4. Click Add Source to save your settings.
  5. Copy the Write key from the Segment UI. You will need to input this key on the MoEngage App Marketplace.SegmentSource.png

Step 2: Enter Connection Details on MoEngage

Marketplace.png
  1. Go to MoEngage Dashboard > App Marketplace > Search for Segment > and click Add Integration.
  2. Give your connection a name, enter your Write Key , and then select a Segment Region.
    Note: Cross-region data is not allowed, so Segment will drop your events if the region you select on the MoEngage App Marketplace is different from your Segment Workspace Region.
  3. Go back to Segment and click Add Destinations in your MoEngage source to add the destinations where you want to receive your MoEngage data.

Events

The table below lists events that MoEngage sends to Segment. These events appear as tables in your warehouse and as regular events in other Destinations.
NameDescriptionCategoryRelated to Channel/Platform
App/Site OpenedTracked when a user session begins on the app or website. It is also tracked only if the time difference between the user’s Last Active Time and App/Site Open Time is more than 30 minutes.LifecycleAndroid, iOS, Web
Viewed Web PageTracked when a user visits a web page. Select the page URL as an event attribute to find the number of users visiting a particular page, or use it to set up a “Drop-off capture” Smart Trigger Web Push.LifecycleWeb
App ExitTracked whenever the App goes to the background.LifecycleAndroid, iOS
User LogoutTracked when a user logs out of the app/site or user resets.LifecycleAndroid, iOS, Web
Push ID Register AndroidTracked when the MoEngage system registers the push ID for Android devices. The attribute registered_by has the status.LifecycleAndroid
User MergedTracked for a known user whenever a MoEngage user object is merged with it.LifecycleUser Merging
App UpdateTracked when a user updates the App.LifecycleAndroid, iOS
InstallTracked when a user installs the app on the device.AcquisitionAndroid, iOS
Device ReInstallTracked when a reinstall is detected on a device.UninstallAndroid, iOS
Device UninstallTracked when a user uninstalls the app on a device.UninstallAndroid, iOS
User ReInstallTracked when a reinstall is detected for an identified user in MoEngage.UninstallAndroid, iOS
Accepted Web Push Soft-askTracked when a user accepts the Push Permission Soft-ask on your website as part of the 2-step Push Opt-in mechanism.ReachabilityWeb
Closed Web Push Soft-askTracked when a user closes the Push Permission Soft-ask on your website as part of the 2-step Push Opt-in mechanism.ReachabilityWeb
Denied Web Push SubscriptionTracked when a user denies receiving push notifications on the Web.ReachabilityWeb
Dismissed Web Push SubscriptionTracked when a user dismisses the push subscription prompt.ReachabilityWeb
Overlay clicked in 1-click HTTP subscriptionTracked when a user clicks a Subscription Message on your website as part of the HTTP Push Subscription flow.ReachabilityWeb
Overlay shown in 1-click HTTP subscriptionTracked when a user views a Subscription Message on your website as part of the HTTP Push Subscription flow.ReachabilityWeb
Reachability Push AndroidReachability Push Android is True (200) when the user is reachable on at least one Android device.ReachabilityAndroid
Reachability Push iOSReachability Push iOS is True (200) when the user is reachable on at least one iOS device.ReachabilityiOS
Reachability Push WebReachability Push Web is True (200) when the user is reachable on at least one web device.ReachabilityWeb
Subscribed to Web PushTracked when a user is subscribed to Web Push Notifications. Use it to find the day-wise count of subscribers or set up a Welcome” Smart Trigger Web Push.ReachabilityWeb
Unsubscribed from Web PushTracked when a user directly unsubscribes from the website/Chrome settings, or GCM communicates that a push token is invalid.ReachabilityWeb
Viewed Web Push Soft-askTracked when a user views the Push Permission Soft-ask on your website as part of the 2-step Push Opt-in mechanism.ReachabilityWeb
Allowed Web Push SubscriptionTracked when a user allows receiving push notifications on the Web.Campaign ActivityWeb
Displayed Web Push SubscriptionWhen a hard ask is shown to the user.Campaign ActivityWeb
Onsite Message Template clickedOn clicking the Onsite Messaging template.Campaign ActivityWeb
Onsite Message Template shownOn a load of the Onsite Messaging template.Campaign ActivityWeb
Onsite Message Template closedOn closing the Onsite Messaging template.Campaign ActivityWeb
Onsite Message Template auto dismissWhen the Onsite Messaging template closes by itself after the time duration given while creating the campaign.Campaign ActivityWeb
Card ClickedTracked when the user clicks the Card in the App Inbox.Campaign ActivityAndroid, iOS
Card DeliveredTracked when a Card is delivered to the App Inbox after the user has opened the Inbox.Campaign ActivityAndroid, iOS
Card SentTracked when a Card notification is sent to the user but doesn’t indicate if the notification is delivered to the App Inbox.Campaign ActivityAndroid, iOS
Card ViewedTracked when the user views a Card or scrolls down to it in the App Inbox.Campaign ActivityAndroid, iOS
Connector SentTracked when a connector was sent successfully.Campaign ActivityConnector
Email BouncedTracked when our system finds an email that is hard-bounced. Typically happens when an email address doesn’t exist.Campaign ActivityEmail
Email ClickedTracked when a user clicks on any link in the email.Campaign ActivityEmail
Email ComplainedTracked when a user marks the email as spam.Campaign ActivityEmail
Email DroppedTracked when an email is dropped. Email is dropped when it’s part of the bounce list, the unsubscribe list, or the spam report list.Campaign ActivityEmail
Email OpenedTracked when a user opens an email.Campaign ActivityEmail
Email SentTracked when our system sends an email to a user.Campaign ActivityEmail
Email Soft BouncedTracked when our system finds an email that is soft-bounced. Typically happens when there is a temporary delivery issue.Campaign ActivityEmail
Email UnsubscribedTracked when a user unsubscribes from receiving emails.Campaign ActivityEmail
Email Unsubscribe DropTracked when an email is dropped because the user is part of an unsubscribe list. This is tracked at SendGrid.Campaign ActivityEmail
Email Viewed in BrowserTracked when a user clicks on the view in the browser link present in the email.Campaign ActivityEmail
Facebook Audience SyncedTracked when Facebook API returns a 2xx response for add or delete requests to an audience.Campaign ActivityFacebook
In-App Clicked AndroidTracked when a user clicks the In-App message on an Android device.Campaign ActivityAndroid
In-App Clicked iOSTracked when a user clicks the In-App message on an iOS device.Campaign ActivityiOS
In-App Clicked WindowsTracked when a user clicks the In-App message on a Windows device.Campaign ActivityWindows
In-App Closed AndroidTracked when a user dismisses the In-App message by clicking on the close button on an Android device.Campaign ActivityAndroid
In-App Closed iOSTracked when a user dismisses an In-App message by clicking on the close button on an iOS device.Campaign ActivityiOS
In-App Closed WindowsTracked when a user dismisses the In-App message by clicking on the close button on a Windows device.Campaign ActivityWindows
In-App Shown AndroidTracked when an In-App message is shown to the user on an Android device.Campaign ActivityAndroid
In-App Shown iOSTracked when an In-App message is shown to the user on an iOS device.Campaign ActivityiOS
In-App Shown WindowsTracked when an In-App message is shown to the user on a Windows device.Campaign ActivityWindows
Notification Clicked AndroidTracked when a user clicks a notification on an Android device.Campaign ActivityAndroid
Notification Clicked iOSTracked when a user clicks a notification on an iOS device.Campaign ActivityiOS
Notification Clicked WebTracked when a user clicks a notification on the browser.Campaign ActivityWeb
Notification Clicked WindowsTracked when a user clicks a notification on a Windows device.Campaign ActivityWindows
Notification Dismissed iOSTracked when the user dismisses the notification on an iOS device.Campaign ActivityiOS
Notification Received AndroidTracked when a user receives a notification on an Android device.Campaign ActivityAndroid
Notification Received iOS App ActiveTracked when the App is in the foreground and the user receives the notification on iOS.Campaign ActivityiOS
Notification Received iOSTracked when a user receives a notification on an iOS device.Campaign ActivityiOS
Notification Received WebTracked when a user receives a notification on a browser.Campaign ActivityWeb
Notification Sent WindowsTracked when a user receives a notification on a Windows device.Campaign ActivityWindows
Notification Sent iOSTracked when a user receives a notification on an iOS device.Campaign ActivityiOS
Notification Swiped AndroidTracked when a notification is dismissed by the user with a swipe gesture on Android.Campaign ActivityAndroid
On-site Message ShownTracked when an on-site messaging campaign is shown to a user.Campaign ActivityWeb
On-site Message ClickedTracked when an on-site messaging campaign is clicked by a user.Campaign ActivityWeb
On-site Message ClosedTracked when an on-site messaging campaign is closed by a user.Campaign ActivityWeb
Push Preference Changed iOSTracked when the iOS device push preference is changed. It has a modified status.Campaign ActivityiOS
Web Personalization Message ShownTracked when a web personalization campaign is shown to a user.Campaign ActivityWeb
Web Personalization Message ClickedTracked when a web personalization campaign is clicked by a user.Campaign ActivityWeb
Web Personalization Message ClosedTracked when a web personalization campaign is closed by a user.Campaign ActivityWeb
SMS DeliveredTracked when our system receives a delivery receipt for the SMS sent to a user.Campaign ActivitySMS
SMS SentTracked when our system sends SMS to a user.Campaign ActivitySMS
SMS ClickedTracked when a user clicks on any of the links in the SMS message body.Campaign ActivitySMS
User Entered FlowTracked when a user falls in the target audience and has qualified for the entry in the Flow.Campaign ActivityFlows
User Exited FlowTracked when a user exits from a Stop Cell of the Flow.Campaign ActivityFlows
User removed from the campaign due to the control groupGenerated while sending a campaign out with the control group defined.Campaign ActivityFlows/Campaign Channels
User added to the control groupGenerated while creating a global control group.Campaign ActivityFlows/Campaign Channels
User removed from the control groupGenerated when the global control group is updated. Specifically, when the global control group % is reduced or the global control group is refreshed.Campaign ActivityFlows/Campaign Channels
WhatsApp Message ClickedTracked when a WhatsApp Message is read by the user. It will only be available for users who have read receipts enabled.Campaign ActivityFlows/Campaign Channels
WhatsApp Message DeliveredTracked when a WhatsApp Message is delivered to a user.Campaign ActivityFlows/Campaign Channels
WhatsApp Message Delivery FailedTracked when the provider failed to send/deliver a WhatsApp Message for a user.Campaign ActivityFlows/Campaign Channels
WhatsApp Message ReadTracked when a WhatsApp Message is read by the user. It will only be available for users who have read receipts enabled.Campaign ActivityFlows/Campaign Channels
WhatsApp Message SentTracked when a WhatsApp message is sent to a user.Campaign ActivityFlows/Campaign Channels
Custom EventCustom events are events defined by you.--

MoEngage Event Properties

The table below lists the properties included in the events listed above.
NameDescription
App VersionMobile Application version on which this event was tracked. App Version is tracked with all events.
SDK VersionMoEngage SDK version on which this event was tracked. SDK Version is tracked with all events.
PlatformOS name on which this event was tracked, for example -Android, iOS, Web. The platform is tracked with all events.
Campaign IdID of the campaign associated with this event.
Campaign NameRepresents the name of the campaign, the message was part of.
Campaign TypeRepresents the type of campaign the message was part of.
Readable Campaign IdRepresents the ID of the campaign the message was part of.
Parent Campaign idTracked when a periodic campaign is run. Represents the campaign ID of the parent periodic campaign, child instances of which are re-run on a recurring basis.
Parent Flow IdTracked when the journey campaign is run. Represents the Flow ID of the parent journey campaign.
Parent Flow NameTracked when the journey campaign is run. Represents the flow name of the parent journey campaign.
Locale IdTracked when the campaign is sent using Localization. Represents the id of message locale.
Locale NameTracked when the campaign is sent using Localization. Represents the name of the message locale.
Variation IdTracked when a campaign is sent using A/B Testing. Represents the ID of the message variation.
URLTracked when the display filter is selected in the in-app campaign.
timestampUser time while performing the event. This is in epoch time.
First SessionGenerated for all the events tracked with the MoEngage web SDK. Value is True for the first session of the user only.
Logged In StatusGenerated for all the events tracked with the MoEngage web SDK. Value is True if the user has logged in on the device.
Exit ReasonTracked when a user exits the flow. This is tracked as an attribute of the ‘User Exited Flow’ event.
You can refer to MoEngage’s Derived Events & Attributes to know which attributes you can forward to Segment.

Frequently Asked Questions

It typically takes up to 30 minutes for the automated data exports to be set up for your account and for you to start seeing data there.
Yes, if you need to export new events at a later time, you can always edit your configuration on the App Marketplace and get the new events added to your exports.
As of now, you cannot export historical data using Automated Data Exports. Once configured, you will start seeing data for each event from the time you enabled your exports.
If your billing plan does not cover this already and you need to get this enabled at a later time, you would need to work with your Customer Success Manager to get this included in your billing plan. Based on the amount of data that MoEngage will place in your Data warehouse/Partner/API on a monthly basis, this could lead to additional charges.