@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/cjs/client/identifiers.d.ts +55 -0
- package/dist/cjs/client/identifiers.js +197 -0
- package/dist/cjs/client/index.d.ts +31 -0
- package/dist/cjs/client/index.js +115 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/types/client.d.ts +14 -0
- package/dist/client/identifiers.d.ts +55 -0
- package/dist/client/identifiers.js +135 -0
- package/dist/client/index.d.ts +31 -0
- package/dist/client/index.js +190 -83
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/types/client.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/types/client.d.ts
CHANGED
|
@@ -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