countly-sdk-web
Advanced tools
Comparing version 23.12.2 to 23.12.3
@@ -0,1 +1,6 @@ | ||
## 23.12.3 | ||
- Added bot detection for workers | ||
- Added the ability to clear stored device IDs in the workers | ||
- Mitigated an issue where utm naming could have been affected if 'searchQuery' did not return '?' | ||
## 23.12.2 | ||
@@ -2,0 +7,0 @@ - Improved bot detection capabilities |
@@ -19,3 +19,3 @@ /* eslint-disable cypress/no-unnecessary-waiting */ | ||
const SDK_NAME = "javascript_native_web"; | ||
const SDK_VERSION = "23.12.2"; | ||
const SDK_VERSION = "23.12.3"; | ||
@@ -22,0 +22,0 @@ // tests |
@@ -61,4 +61,6 @@ /* eslint-disable cypress/no-unnecessary-waiting */ | ||
expect(Countly._internals.userAgentSearchBotDetection("Google")).to.equal(false); | ||
expect(Countly._internals.userAgentSearchBotDetection("HeadlessChrome")).to.equal(true); | ||
expect(Countly._internals.userAgentSearchBotDetection("Chrome-Lighthouse")).to.equal(true); | ||
}); | ||
}); | ||
}); |
@@ -41,3 +41,3 @@ /* eslint-disable require-jsdoc */ | ||
hp.haltAndClearStorage(() => { | ||
initMulti("YOUR_APP_KEY", "?utm_aa=hehe", { aa: true, bb: true }); | ||
initMulti("YOUR_APP_KEY", "utm_aa=hehe", { aa: true, bb: true }); | ||
cy.fetch_local_request_queue().then((rq) => { | ||
@@ -54,3 +54,3 @@ cy.log(rq); | ||
hp.haltAndClearStorage(() => { | ||
initMulti("YOUR_APP_KEY", "?utm_aa=hehe&utm_bb=hoho", { aa: true, bb: true }); | ||
initMulti("YOUR_APP_KEY", "utm_aa=hehe&utm_bb=hoho", { aa: true, bb: true }); | ||
cy.fetch_local_request_queue().then((rq) => { | ||
@@ -77,3 +77,3 @@ cy.log(rq); | ||
// utm object not provided with inappropriate query | ||
initMulti("Countly_5", "?utm_ss=hehe5", undefined); | ||
initMulti("Countly_5", "utm_ss=hehe5", undefined); | ||
@@ -122,3 +122,3 @@ // default (original) init with no custom tags and default query | ||
// empty init, garbage query + 1 default | ||
initMulti("Countly_multi_3", "?dasdashdjkhaslkjdhsakj=dasmndlask=asdkljska&&utm_source=hehe", undefined); | ||
initMulti("Countly_multi_3", "dasdashdjkhaslkjdhsakj=dasmndlask=asdkljska&&utm_source=hehe", undefined); | ||
@@ -125,0 +125,0 @@ // full default utm obj + custom 1, full query + 1 |
@@ -45,3 +45,3 @@ /* eslint-disable require-jsdoc */ | ||
hp.haltAndClearStorage(() => { | ||
init("YOUR_APP_KEY", "?utm_source=hehe", undefined); | ||
init("YOUR_APP_KEY", "utm_source=hehe", undefined); | ||
Countly.track_view(pageNameOne); // first view | ||
@@ -48,0 +48,0 @@ Countly.track_view(pageNameTwo); // second view |
@@ -9,2 +9,3 @@ importScripts("../lib/countly.js"); | ||
debug: true, | ||
clear_stored_id: true, // Resets the stored device ID on init | ||
storage: { | ||
@@ -11,0 +12,0 @@ getItem: function (key) { |
{ | ||
"name": "countly-sdk-web", | ||
"version": "23.12.2", | ||
"version": "23.12.3", | ||
"description": "Countly Web SDK", | ||
@@ -5,0 +5,0 @@ "main": "lib/countly.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1222915
13199