diff --git a/examples/Angular/main.ts b/examples/Angular/main.ts index 85da81a..d5a2eb3 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.count.ly", + app_key: COUNTLY_APP_KEY, + url: COUNTLY_SERVER_KEY, //your server goes here debug: true }); Countly.track_sessions(); diff --git a/examples/React/src/index.js b/examples/React/src/index.js index d5461ab..389a4f6 100644 --- a/examples/React/src/index.js +++ b/examples/React/src/index.js @@ -8,9 +8,17 @@ 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', + app_key: COUNTLY_APP_KEY, + url: COUNTLY_SERVER_KEY, //your server goes here debug: true }); diff --git a/examples/Symbolication/src/main.js b/examples/Symbolication/src/main.js index 39d8e79..a7033be 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.count.ly", debug: true }); diff --git a/examples/example_async.html b/examples/example_async.html index ac68a00..bf312bd 100644 --- a/examples/example_async.html +++ b/examples/example_async.html @@ -12,7 +12,11 @@ //provide countly initialization parameters Countly.app_key = "YOUR_APP_KEY"; - Countly.url = "https://your.domain.count.ly"; //your server goes here + Countly.url = "https://your.server.ly"; //your server goes here + + if(Countly.app_key === "YOUR_APP_KEY" || Countly.url === "https://your.server.ly"){ + console.warn("Please do not use default set of app key and server url") + } Countly.debug = true; //start pushing function calls to queue diff --git a/examples/example_fb.html b/examples/example_fb.html index 9edf033..12acdd8 100644 --- a/examples/example_fb.html +++ b/examples/example_fb.html @@ -11,10 +11,16 @@ diff --git a/examples/example_opt_out.html b/examples/example_opt_out.html index 71ad8b2..c128a20 100644 --- a/examples/example_opt_out.html +++ b/examples/example_opt_out.html @@ -9,9 +9,16 @@ import Countly from '../Countly.js'; //initializing countly with params + 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.count.ly", //your server goes here + app_key: COUNTLY_APP_KEY, + url: COUNTLY_SERVER_KEY, //your server goes here debug: true }) //track sessions automatically diff --git a/examples/example_rating_widgets.html b/examples/example_rating_widgets.html index 955f64b..d9448c0 100644 --- a/examples/example_rating_widgets.html +++ b/examples/example_rating_widgets.html @@ -8,9 +8,16 @@