@aranova/tracking-react 0.23.1 → 0.24.1

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/dist/index.mjs CHANGED
@@ -296,6 +296,8 @@ var TRACKING_PARAM_KEYS = [
296
296
  // citizens: captured, persisted, and attributed exactly like gclid.
297
297
  "wbraid",
298
298
  "gbraid",
299
+ // Yelp Ads click id (40 hex chars), appended to ad-click URLs.
300
+ "ylpcid",
299
301
  "fbclid",
300
302
  "utm_source",
301
303
  "utm_medium",
@@ -308,6 +310,7 @@ function createEmptyTrackingParams() {
308
310
  gclid: null,
309
311
  wbraid: null,
310
312
  gbraid: null,
313
+ ylpcid: null,
311
314
  fbclid: null,
312
315
  utm_source: null,
313
316
  utm_medium: null,
@@ -641,6 +644,7 @@ function buildLandingPayloadFields(sessionId, override) {
641
644
  landing_gclid: params.gclid ?? null,
642
645
  landing_wbraid: params.wbraid ?? null,
643
646
  landing_gbraid: params.gbraid ?? null,
647
+ landing_ylpcid: params.ylpcid ?? null,
644
648
  landing_fbclid: params.fbclid ?? null,
645
649
  landing_utm_source: params.utm_source ?? null,
646
650
  landing_utm_medium: params.utm_medium ?? null,
@@ -671,6 +675,7 @@ function createTrackingSessionUpsertPayload(trackingParams, input, context) {
671
675
  gclid: trackingParams.gclid,
672
676
  wbraid: trackingParams.wbraid,
673
677
  gbraid: trackingParams.gbraid,
678
+ ylpcid: trackingParams.ylpcid,
674
679
  fbclid: trackingParams.fbclid,
675
680
  fbc: getFbcCookie(),
676
681
  fbp: getFbpCookie(),
@@ -694,6 +699,7 @@ function createTrackingEventCreatePayload(trackingParams, input, context) {
694
699
  gclid: trackingParams.gclid,
695
700
  wbraid: trackingParams.wbraid,
696
701
  gbraid: trackingParams.gbraid,
702
+ ylpcid: trackingParams.ylpcid,
697
703
  fbclid: trackingParams.fbclid,
698
704
  fbc: getFbcCookie(),
699
705
  fbp: getFbpCookie(),
@@ -1950,6 +1956,7 @@ function createTrackingClient(config) {
1950
1956
  gclid: params.gclid,
1951
1957
  wbraid: params.wbraid,
1952
1958
  gbraid: params.gbraid,
1959
+ ylpcid: params.ylpcid,
1953
1960
  fbclid: params.fbclid,
1954
1961
  fbc: getFbcCookie(),
1955
1962
  fbp: getFbpCookie(),
@@ -3748,7 +3755,7 @@ function GoogleAdsTracking(props) {
3748
3755
  import { createContext as createContext2, useContext as useContext2, useEffect as useEffect5, useMemo as useMemo4 } from "react";
3749
3756
 
3750
3757
  // package.json
3751
- var version = "0.23.1";
3758
+ var version = "0.24.1";
3752
3759
 
3753
3760
  // ../tracking-core/src/phone-react.tsx
3754
3761
  import {