@chordcommerce/analytics 1.21.2 → 1.22.0-beta.2

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/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './client/index.js';
2
+ export * from './client/identifiers.js';
2
3
  export * from './types/index.js';
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './client/index.js';
2
+ export * from './client/identifiers.js';
2
3
  export * from './types/index.js';
@@ -34,6 +34,20 @@ export interface ChordAnalyticsOptions<T extends ObjectTypes = ObjectTypes> {
34
34
  awaitConsent?: boolean;
35
35
  debug?: boolean;
36
36
  enableLogging?: boolean;
37
+ /**
38
+ * Controls the postMessage listener for events from the Shopify Custom Web
39
+ * Pixel sandbox. When true, always enables the listener. When false, always
40
+ * disables it. When undefined (default), auto-detects by checking for
41
+ * window.Shopify.shop which is present on Shopify Liquid storefronts.
42
+ */
43
+ enableWebPixelListener?: boolean;
44
+ /**
45
+ * Controls syncing CDP anonymous ID and Google Client ID to Shopify cart
46
+ * attributes. When true, always enables sync. When false, always disables it.
47
+ * When undefined (default), auto-detects by checking for window.Shopify.shop
48
+ * which is present on Shopify Liquid storefronts.
49
+ */
50
+ enableIdentifierSync?: boolean;
37
51
  formatters: ChordAnalyticsFormatters<T>;
38
52
  namespace?: string;
39
53
  stripNull?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chordcommerce/analytics",
3
3
  "description": "Chord Commerce event tracking",
4
- "version": "1.21.2",
4
+ "version": "1.22.0-beta.2",
5
5
  "author": "Chord Commerce <help@chord.co> (https://www.chord.co)",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",