PluginProbe
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.7.5
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.7.5
4.7.4 4.7.5 4.7.3 4.7.2 4.7.1 trunk 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 3.0.0 3.0.1 3.1.0 3.10.0 3.10.1 3.11.1 3.11.2 3.11.3 3.2.0 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 All 95 releases
cookiebot / assets / js / backend / amplitude.js

amplitude.js in Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 4.7.5, at assets/js/backend/amplitude.js

30 lines 869 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // Load Amplitude SDK
2 const script = document.createElement('script');
3 script.src = 'https://cdn.eu.amplitude.com/script/3573fa11b8c5b4bcf577ec4c8e9d5cb6.js';
4 script.async = true;
5 script.onload = function () {
6 window.amplitude.init('3573fa11b8c5b4bcf577ec4c8e9d5cb6', {
7 serverZone: 'EU',
8 fetchRemoteConfig: true,
9 defaultTracking: false
10 });
11 };
12 document.head.appendChild(script);
13
14 // Global tracking function
15 window.trackAmplitudeEvent = function (eventName, additionalProperties = {}) {
16 try {
17 if (window.amplitude?.track) {
18 const properties = {
19 source: 'wordpress_plugin',
20 timestamp: new Date().toISOString(),
21 ...additionalProperties
22 };
23
24 window.amplitude.track(eventName, properties);
25 } else {
26 }
27 } catch (error) {
28 }
29 }
30