@codecademy/tracking 1.0.49-alpha.eda04bfb95.0 → 1.0.49
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/dist/events/types.d.ts
CHANGED
|
@@ -17,13 +17,13 @@ export const initializeTrackingIntegrations = async _ref => {
|
|
|
17
17
|
if (init) return; // Prevent multiple initializations
|
|
18
18
|
init = true;
|
|
19
19
|
if (enablePartytown) {
|
|
20
|
-
|
|
20
|
+
initializePartytown();
|
|
21
21
|
} else {
|
|
22
22
|
// Wait to allow any other post-hydration logic to run first
|
|
23
23
|
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
24
24
|
}
|
|
25
25
|
if (isFidesEnabled) {
|
|
26
|
-
|
|
26
|
+
initializeFides();
|
|
27
27
|
} else {
|
|
28
28
|
// Load in OneTrust's banner and wait for its `OptanonWrapper` callback
|
|
29
29
|
await initializeOneTrust({
|
|
@@ -34,7 +34,7 @@ export const initializeTrackingIntegrations = async _ref => {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
// Load GTM
|
|
37
|
-
|
|
37
|
+
initializeGTM({
|
|
38
38
|
scope,
|
|
39
39
|
environment,
|
|
40
40
|
optedOutExternalTracking,
|
package/package.json
CHANGED