UNPKG

@chordcommerce/analytics

Version:

Chord Commerce event tracking

24 lines (23 loc) 776 B
import type { ConsentConfiguration } from '../../types/index.js'; declare global { interface Window { Shopify?: { customerPrivacy?: ShopifyCustomerPrivacyApi; }; } } interface ShopifyCustomerPrivacyApi { getRegion: () => string; analyticsProcessingAllowed: () => boolean; marketingAllowed: () => boolean; preferencesProcessingAllowed: () => boolean; saleOfDataAllowed: () => boolean; } export declare const shopifyConsentAdapter: () => { getCurrentConsent: () => ConsentConfiguration; handleConsentUpdates: (updateCdpConsent: (consent: ConsentConfiguration) => void) => void; userCanBeTracked: () => boolean; getCategories: () => Record<string, boolean>; isConsentReady: () => boolean; }; export {};