Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions integrations/moengage/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.1.0 / 2023-11-16
==================

* Adds support for cluster option

1.0.6 / 2019-01-07
==================

Expand Down
4 changes: 3 additions & 1 deletion integrations/moengage/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var find = require('obj-case').find;
var MoEngage = (module.exports = integration('MoEngage')
.option('apiKey', '')
.option('debugMode', false)
.option('cluster', undefined)
.tag(
'<script src="https://cdn.moengage.com/webpush/moe_webSdk.min.latest.js">'
));
Expand Down Expand Up @@ -76,7 +77,8 @@ MoEngage.prototype.initialize = function() {
when(self.loaded, function() {
self._client = window.moe({
app_id: self.options.apiKey,
debug_logs: self.options.debugMode ? 1 : 0
debug_logs: self.options.debugMode ? 1 : 0,
cluster: self.options.cluster
});
// we need to store the current anonymousId for later use in `.identify()` to check if it's a new/existing user
self.initializedAnonymousId = self.analytics.user().anonymousId();
Expand Down
2 changes: 1 addition & 1 deletion integrations/moengage/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@segment/analytics.js-integration-moengage",
"description": "The MoEngage analytics.js integration.",
"version": "1.0.8",
"version": "1.1.0",
"keywords": [
"analytics.js",
"analytics.js-integration",
Expand Down
1 change: 1 addition & 0 deletions integrations/moengage/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('MoEngage', function() {
integration('MoEngage')
.option('apiKey', '')
.option('debugMode', false)
.option('cluster', undefined)
);
});

Expand Down