Setup MoEngage
To setup MoEngage, do the following :
- Navigate to MoEngage Dashboard > Settings > General.
- Copy the Workspace ID (earlier AppID).
- Go to Segment dashboard, go to Integrations and select MoEngage.
- Enable MoEngage Integration.
- Go to MoEngage Settings and enter the MoEngage Workspace ID (earlier App ID), obtained in Step1.
- Save the changes.
Using additional configurations
Data Center
To set the data center apart from the default (dc-01), you need to add this in your localstorage
moe_segment_cluster: dc_X
(where X can be a number based on the dashboard host)
Use this helper code to set it:localStorage.setItem('moe_segment_cluster', {dataCenter})
replace {dataCenter} with its proper value.
Follow this table to get the value of your data center:
Dashboard host | Data Center |
---|---|
dashboard-01.moengage.com |
dc_1 |
dashboard-02.moengage.com |
dc_2 |
dashboard-03.moengage.com |
dc_3 |
dashboard-04.moengage.com |
dc_4 |
dashboard-06.moengage.com |
dc_6 |
SDK Integration & Data Tracking
To install Segment on your website, kindly refer to Install SDK.
To track user properties, kindly refer to Track User Properties.
To track user behaviour, kindly refer to Track User Behaviour.
Push Integration
To integrate push notifications on your website, kindly refer to Setting up web push