diff --git a/examples/Angular/main.ts b/examples/Angular/main.ts index e08d338e..d5a2eb30 100644 --- a/examples/Angular/main.ts +++ b/examples/Angular/main.ts @@ -8,9 +8,16 @@ import Countly from 'countly-sdk-web'; window.Countly = Countly; +const COUNTLY_SERVER_KEY = "https://your.server.ly"; +const COUNTLY_APP_KEY = "YOUR_APP_KEY"; + +if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ + console.warn("Please do not use default set of app key and server url") +} +// initializing countly with params Countly.init({ - app_key: "YOUR_APP_KEY", - url: "https://your.domain.countly", + app_key: COUNTLY_APP_KEY, + url: COUNTLY_SERVER_KEY, //your server goes here debug: true }); Countly.track_sessions(); diff --git a/examples/Symbolication/src/main.js b/examples/Symbolication/src/main.js index fb40c65f..a7033beb 100644 --- a/examples/Symbolication/src/main.js +++ b/examples/Symbolication/src/main.js @@ -1,9 +1,16 @@ import Countly from "countly-sdk-web"; +const COUNTLY_SERVER_KEY = "https://your.server.ly"; +const COUNTLY_APP_KEY = "YOUR_APP_KEY"; + +if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ + console.warn("Please do not use default set of app key and server url") +} +// initializing countly with params Countly.init({ - app_key: "YOUR_APP_KEY", + app_key: COUNTLY_APP_KEY, + url: COUNTLY_SERVER_KEY, //your server goes here app_version: "1.0", - url: "https://your.domain.countly", debug: true }); diff --git a/examples/example_apm.html b/examples/example_apm.html index deafa485..28a13329 100644 --- a/examples/example_apm.html +++ b/examples/example_apm.html @@ -10,10 +10,16 @@ diff --git a/examples/example_opt_out.html b/examples/example_opt_out.html index d2a683bb..253a965f 100644 --- a/examples/example_opt_out.html +++ b/examples/example_opt_out.html @@ -9,9 +9,16 @@ - \ No newline at end of file + diff --git a/examples/mpa/worker_for_test.js b/examples/mpa/worker_for_test.js index 033e60b1..86df3d4a 100644 --- a/examples/mpa/worker_for_test.js +++ b/examples/mpa/worker_for_test.js @@ -1,8 +1,15 @@ importScripts("../../lib/countly.js"); +const COUNTLY_SERVER_KEY = "https://your.server.ly"; +const COUNTLY_APP_KEY = "YOUR_APP_KEY"; + +if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ + console.warn("Please do not use default set of app key and server url") +} +// initializing countly with params Countly.init({ - app_key: "YOUR_APP_KEY", - url: "https://your.domain.countly", + app_key: COUNTLY_APP_KEY, + url: COUNTLY_SERVER_KEY, //your server goes here debug: true, test_mode: true }); diff --git a/examples/react/src/index.js b/examples/react/src/index.js index d5461ab1..2cb43b98 100644 --- a/examples/react/src/index.js +++ b/examples/react/src/index.js @@ -8,10 +8,18 @@ import Countly from 'countly-sdk-web'; //Exposing Countly to the DOM as a global variable //Usecase - Heatmaps window.Countly = Countly; + +const COUNTLY_SERVER_KEY = "https://your.server.ly"; +const COUNTLY_APP_KEY = "YOUR_APP_KEY"; + +if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ + console.warn("Please do not use default set of app key and server url") +} +// initializing countly with params Countly.init({ - app_key: 'YOUR_APP_KEY', - url: 'YOUR_SERVER_URL', - debug: true + app_key: COUNTLY_APP_KEY, + url: COUNTLY_SERVER_KEY, //your server goes here + debug: true }); Countly.q.push(['track_sessions']); diff --git a/examples/worker.js b/examples/worker.js index 71a1479b..48f90d08 100644 --- a/examples/worker.js +++ b/examples/worker.js @@ -2,9 +2,16 @@ importScripts("../lib/countly.js"); const STORE={}; // in-memory storage for worker +const COUNTLY_SERVER_KEY = "https://your.server.ly"; +const COUNTLY_APP_KEY = "YOUR_APP_KEY"; + +if(COUNTLY_APP_KEY === "YOUR_APP_KEY" || COUNTLY_SERVER_KEY === "https://your.server.ly"){ + console.warn("Please do not use default set of app key and server url") +} + Countly.init({ - app_key: "YOUR_APP_KEY", - url: "https://your.domain.countly", + app_key: COUNTLY_APP_KEY, + url: COUNTLY_SERVER_KEY, debug: true, clear_stored_id: true, // Resets the stored device ID on init storage: {