shopkit-analytics 1.0.24 → 1.0.26

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/README.md CHANGED
@@ -77,23 +77,25 @@ The following table shows which events are supported by each analytics platform:
77
77
 
78
78
  | Event Type | Google Analytics | Facebook Pixel | MoEngage | PostHog | Shopify Analytics | KwikCheckout | KwikPass |
79
79
  |------------|:----------------:|:--------------:|:--------:|:-------:|:----------------:|:------------:|:--------:|
80
- | **Page View** | ✅ | ✅ | ✅ | ✅ | ✅ | | |
81
- | **View Content** | ✅ | ✅ | ✅ | ✅ | ✅ | | |
82
- | **Viewed Product** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
83
- | **Add to Cart** | ✅ | ✅ | ✅ | ✅ | ✅ | | |
84
- | **Remove from Cart** | ✅ | ❌ | ✅ | ✅ | ❌ | | ❌ |
85
- | **Search** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
80
+ | **Page View** | ✅ | ✅ | ✅ | ✅ | ✅ | | |
81
+ | **View Content** | ✅ | ✅ | ✅ | ✅ | ✅ | | |
82
+ | **Viewed Product** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
83
+ | **Add to Cart** | ✅ | ✅ | ✅ | ✅ | ✅ | | |
84
+ | **Remove from Cart** | ✅ | ❌ | ✅ | ✅ | ❌ | | ❌ |
85
+ | **Search** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
86
86
  | **View Search Results** | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
87
- | **Checkout Started** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
88
- | **Initiate Checkout** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
87
+ | **Cart Viewed** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
88
+ | **Checkout Started** | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
89
+ | **Initiate Checkout** | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |
89
90
  | **Add Payment Info** | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ |
90
- | **Checkout Completed** | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | |
91
- | **Purchase** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
91
+ | **Checkout Completed** | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | |
92
+ | **Purchase** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
92
93
  | **User Signup** | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
93
94
  | **User Login** | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
94
- | **Custom Events** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
95
- | **Specific Events** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
95
+ | **Custom Events** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
96
+ | **Specific Events** | ✅ | ✅ | ✅ | ✅ | ❌ | | |
96
97
  | **GoKwik Events** | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ |
98
+ | **KwikPass Events** | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
97
99
 
98
100
  ### GoKwik-Specific Events (KwikCheckout Only)
99
101
 
@@ -420,11 +420,6 @@ var PixelAdapter = class extends BaseAdapter {
420
420
  const pixelId = this.getConfig("pixelId");
421
421
  if (!pixelId) {
422
422
  this.logger.warn("Pixel ID not provided. Skipping fbq init.");
423
- } else {
424
- const isAlreadyInitialized = window._fbq?.loaded || window.fbq?.loaded || document.querySelector(`script[src*="fbevents.js"]`)?.getAttribute("data-pixel-id") === pixelId;
425
- if (!isAlreadyInitialized) {
426
- window.fbq("init", pixelId);
427
- }
428
423
  }
429
424
  }
430
425
  this.initialized = true;
@@ -957,7 +952,7 @@ var GoogleAdapter = class extends BaseAdapter {
957
952
  break;
958
953
  case "viewed_product" /* VIEWED_PRODUCT */:
959
954
  const viewedProductEvent = event;
960
- eventName = this.getEventName(adapterParams, "view_item");
955
+ eventName = this.getEventName(adapterParams, "viewed_product");
961
956
  baseParams = {
962
957
  currency: viewedProductEvent.currency,
963
958
  value: viewedProductEvent.price,