@codecademy/tracking 1.0.41 → 1.0.42-alpha.0655e73d28.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.
@@ -12,4 +12,13 @@ export function initializePartytown() {
12
12
  let data = _ref.data;
13
13
  gtmDoubleFrame(data);
14
14
  };
15
+
16
+ /*
17
+ * Img elements added by GTM tags for Google Ads normally set themselves as
18
+ * position:absolute. Since Partytown prevents this, a stylesheet is added to
19
+ * restore the style (and remove the added whitespace).
20
+ */
21
+ const styles = document.createElement('style');
22
+ styles.innerText = `body > img[aria-hidden=true] { position: absolute; }`;
23
+ document.head.appendChild(styles);
15
24
  }
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.41",
4
+ "version": "1.0.42-alpha.0655e73d28.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@builder.io/partytown": "^0.10.2"
@@ -16,5 +16,5 @@
16
16
  "access": "public"
17
17
  },
18
18
  "repository": "git@github.com:codecademy-engineering/mono.git",
19
- "gitHead": "57c6eceecaa202dbec1458d784b676f3b2953b87"
19
+ "gitHead": "8842aec479b0b97ce63aabeef66383818c032b69"
20
20
  }