This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
github-actions
released this
18 Jan 00:21
·
54 commits
to 2023-01
since this release
Patch Changes
-
16b6b81: Shopify Analytics
Methods:
useShopifyCookies(hasUserConsent = true, domain = ''): void
- sets and refreshes Shopify cookiesgetShopifyCookie(cookieString: string): ShopifyCookie
- returns Shopify cookiessendShopifyAnalytics({eventName: AnalyticsEventName, payload: ShopifyAnalytics}, domain?): Promise<void>
- sends Shopify analyticsgetClientBrowserParameters(): ClientBrowserParameters
- returns commonly tracked client browser values
Constants:
AnalyticsEventName
- list of Shopify accepted analytics eventsAnalyticsPageType
- list of Shopify accepted page type namesShopifyAppSource
- list of Shopify accepted application source
Types:
ShopifyCookies
ClientBrowserParameters
ShopifyAnalytics
- generic type forShopifyPageView
andShopifyAddToCart
ShopifyAnalyticsPayload
- generic type forShopifyPageViewPayload
andShopifyAddToCartPayload
ShopifyPageView
ShopifyPageViewPayload
ShopifyAddToCart
ShopifyAddToCartPayload
ShopifyAnalyticsProduct