@codecademy/tracking 1.0.36-alpha.01c45f7665.0 → 1.0.36-alpha.14a4697e2e.0
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.
|
@@ -9,10 +9,8 @@ export const initializeTrackingIntegrations = async _ref => {
|
|
|
9
9
|
optedOutExternalTracking = _ref.optedOutExternalTracking,
|
|
10
10
|
oneTrustScript = _ref.oneTrustScript,
|
|
11
11
|
partytown = _ref.partytown;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
15
|
-
}
|
|
12
|
+
// 1. Wait to allow any other post-hydration logic to run first (not as critical when using partytown)
|
|
13
|
+
await new Promise(resolve => setTimeout(resolve, partytown ? 100 : 1000));
|
|
16
14
|
|
|
17
15
|
// 2. Load in OneTrust's banner and wait for its `OptanonWrapper` callback
|
|
18
16
|
await initializeOneTrust({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/tracking",
|
|
3
3
|
"description": "Tracking library for Codecademy",
|
|
4
|
-
"version": "1.0.36-alpha.
|
|
4
|
+
"version": "1.0.36-alpha.14a4697e2e.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/**"
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"repository": "git@github.com:codecademy-engineering/mono.git",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "77fa7f8fb87c1f5543a976166d7764b962fd5c23"
|
|
17
17
|
}
|