diff --git a/angular-sample/src/index.html b/angular-sample/src/index.html
index 15676d1e..dc36ae3b 100644
--- a/angular-sample/src/index.html
+++ b/angular-sample/src/index.html
@@ -9,11 +9,12 @@
diff --git a/nuxt-spa/plugins/moe.js b/nuxt-spa/plugins/moe.js
index c29429a1..3ca309e6 100644
--- a/nuxt-spa/plugins/moe.js
+++ b/nuxt-spa/plugins/moe.js
@@ -2,11 +2,12 @@
export default ({ app }) => {
var moeDataCenter = "{DC}"; // Replace "{DC}" with the actual Data center value from the above table
var moeAppID = "{AppID}"; // Replace "{AppID}" available in the settings page of MoEngage Dashboard.
+ var sdkVersion = "2"; // Replace this value with the version of Web SDK that you intend to use. It is recommended to use the format x (major)
- !function(e,n,i,t,a,r,o,d){if(!moeDataCenter||"{DC}"===moeDataCenter)return console.error("Data center has not been passed correctly. Please follow the SDK installation instruction carefully.");var s=e[a]=e[a]||[];if(s.invoked=0,s.initialised>0||s.invoked>0)return console.error("MoEngage Web SDK initialised multiple times. Please integrate the Web SDK only once!"),!1;e.moengage_object=a;var l={},g=function n(i){return function(){for(var n=arguments.length,t=Array(n),a=0;a1)?(console.error("MoEngage Web SDK initialised multiple times. Please integrate the Web SDK only once!"),!1):(d=arguments.length<=0?void 0:arguments[0],l)},r.addEventListener("load",function(){if(d)return e[a]=e.moe(d),e[a].initialised=e[a].initialised+1||1,!0}),r.addEventListener("error",function(){return console.error("Moengage Web SDK loading failed."),!1})}(window,document,"script","https://cdn.moengage.com/release/"+moeDataCenter+"/moe_webSdk.min.latest.js","Moengage");
+ !function(e,n,i,t,a,r,o,d){if(!moeDataCenter||!moeDataCenter.match(/^dc_[0-9]+$/gm))return console.error("Data center has not been passed correctly. Please follow the SDK installation instruction carefully.");var s=e[a]=e[a]||[];if(s.initialized||s.initialised>0)return console.error("MoEngage Web SDK initialized multiple times. Please integrate the Web SDK only once!"),!1;s.invoked=0;e.moengage_object=a;var l={},g=function n(i){return function(){for(var n=arguments.length,t=Array(n),a=0;a1)?(console.error("MoEngage Web SDK initialized multiple times. Please integrate the Web SDK only once!"),!1):(d=arguments.length<=0?void 0:arguments[0],l)},r.addEventListener("load",function(){if(d)return e[a]=e.moe(d),(e[a]&&(e[a].initialised=e[a].initialised+1||1)),!0}),r.addEventListener("error",function(){return console.error("Moengage Web SDK loading failed."),!1})}(window,document,"script","https://cdn.moengage.com/release/"+moeDataCenter+"/versions/"+sdkVersion+"/moe_webSdk.min.latest.js","Moengage");
window.Moengage = moe({
- app_id: moeAppID,
+ appId: moeAppID,
debug_logs: 0
});
};
diff --git a/react-sample/public/index.html b/react-sample/public/index.html
index 4c0e0b82..fc63df27 100644
--- a/react-sample/public/index.html
+++ b/react-sample/public/index.html
@@ -17,11 +17,12 @@