fleek-track-analytics 1.18.73 → 1.18.74

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.
@@ -48,6 +48,7 @@ item_level_data AS (
48
48
  ip.user_id,
49
49
  ip.timestamp,
50
50
  ip.url_params_im_ref AS ClickId,
51
+ ip.url_params_irpid AS IRPID,
51
52
  ip.currency AS CurrencyCode,
52
53
  CAST(REGEXP_REPLACE(ip.user_id, r'gid://shopify/Customer/', '') AS INT64) AS CustomerId,
53
54
  JSON_VALUE(product, '$.variant_id') AS Sku,
@@ -85,6 +86,8 @@ SELECT
85
86
  UPPER(TO_HEX(SHA1(COALESCE(CustomerEmail, '')))) AS CustomerEmail,
86
87
  CAST(OrderDiscountAmount AS STRING) AS OrderDiscountAmount,
87
88
  COALESCE(DiscountCurrency, CurrencyCode) AS DiscountCurrency
89
+
88
90
  FROM item_level_data
89
91
  WHERE IsFirstOrder = TRUE
92
+ OR IRPID IN ('97814') -- IRPIDs that include repeat orders, not just first-time buyers
90
93
  ORDER BY timestamp DESC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleek-track-analytics",
3
- "version": "1.18.73",
3
+ "version": "1.18.74",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "exports": {