Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
Compare
Choose a tag to compare
@github-actions github-actions released this 18 Jan 00:21
· 54 commits to 2023-01 since this release
79126b4

Patch Changes

  • 16b6b81: Shopify Analytics

    Methods:

    • useShopifyCookies(hasUserConsent = true, domain = ''): void - sets and refreshes Shopify cookies
    • getShopifyCookie(cookieString: string): ShopifyCookie - returns Shopify cookies
    • sendShopifyAnalytics({eventName: AnalyticsEventName, payload: ShopifyAnalytics}, domain?): Promise<void> - sends Shopify analytics
    • getClientBrowserParameters(): ClientBrowserParameters - returns commonly tracked client browser values

    Constants:

    • AnalyticsEventName - list of Shopify accepted analytics events
    • AnalyticsPageType - list of Shopify accepted page type names
    • ShopifyAppSource - list of Shopify accepted application source

    Types:

    • ShopifyCookies
    • ClientBrowserParameters
    • ShopifyAnalytics - generic type for ShopifyPageView and ShopifyAddToCart
    • ShopifyAnalyticsPayload - generic type for ShopifyPageViewPayload and ShopifyAddToCartPayload
    • ShopifyPageView
    • ShopifyPageViewPayload
    • ShopifyAddToCart
    • ShopifyAddToCartPayload
    • ShopifyAnalyticsProduct