mod-build 3.6.49-beta.2 → 3.6.49-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
window.privacyPreferencesDetected = false;
|
|
2
2
|
let hasGpcParam = false;
|
|
3
3
|
let gpcPluginEnabled = false;
|
|
4
4
|
|
|
@@ -15,7 +15,5 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
15
15
|
hasGpcParam = checkForPrivacyParam();
|
|
16
16
|
gpcPluginEnabled = typeof navigator.globalPrivacyControl !== 'undefined' && navigator.globalPrivacyControl === 1;
|
|
17
17
|
|
|
18
|
-
privacyPreferencesDetected = detectPrivacyPreferences();
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export { privacyPreferencesDetected };
|
|
18
|
+
window.privacyPreferencesDetected = detectPrivacyPreferences();
|
|
19
|
+
});
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { privacyPreferencesDetected } from '../detectPrivacyPreferences';
|
|
2
|
-
|
|
3
1
|
(function() {
|
|
4
2
|
var heapUserTracking = {
|
|
5
3
|
/**
|
|
@@ -258,7 +256,7 @@ import { privacyPreferencesDetected } from '../detectPrivacyPreferences';
|
|
|
258
256
|
}
|
|
259
257
|
};
|
|
260
258
|
|
|
261
|
-
if (!privacyPreferencesDetected) {
|
|
259
|
+
if (!window.privacyPreferencesDetected) {
|
|
262
260
|
heapUserTracking.init();
|
|
263
261
|
}
|
|
264
262
|
})();
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (!privacyPreferencesDetected) {
|
|
1
|
+
if (!window.privacyPreferencesDetected) {
|
|
4
2
|
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(r?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n);for(var o=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],c=0;c<p.length;c++)heap[p[c]]=o(p[c])};
|
|
5
3
|
|
|
6
4
|
var heapIsDevEnv = window.location.host.match(new RegExp('(' + ['qa.', 'staging.', 'localhost', '.local', '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}'].join('|') + ')', 'i'));
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { privacyPreferencesDetected } from '../detectPrivacyPreferences';
|
|
2
|
-
|
|
3
1
|
var _vis_opt_queue = window._vis_opt_queue || [],
|
|
4
2
|
_vis_counter = 0;
|
|
5
3
|
_vis_opt_queue.push(function() {
|
|
@@ -22,7 +20,7 @@ _vis_opt_queue.push(function() {
|
|
|
22
20
|
// Use the _vis_data object created above to fetch the data,
|
|
23
21
|
// key of the object is the Test ID and the value is Variation Name
|
|
24
22
|
if (_vis_counter) {
|
|
25
|
-
if (!privacyPreferencesDetected) {
|
|
23
|
+
if (!window.privacyPreferencesDetected) {
|
|
26
24
|
heap.addUserProperties(window._vis_data);
|
|
27
25
|
}
|
|
28
26
|
}
|