From bc2449ad5f73b74ebb51eed0ec561985b97b046c Mon Sep 17 00:00:00 2001 From: Haven Date: Tue, 14 Jan 2025 09:41:39 -0800 Subject: [PATCH] feat: add irclid and _kx as campaign parameters (#1648) * feat: add irclid and _kx as campaign parameters * update tests --- ...AllPersonProfilePropertiesAsPersonPropertiesForFlags.test.ts | 2 ++ src/__tests__/personProcessing.test.ts | 2 ++ src/utils/event-utils.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/__tests__/customizations/setAllPersonProfilePropertiesAsPersonPropertiesForFlags.test.ts b/src/__tests__/customizations/setAllPersonProfilePropertiesAsPersonPropertiesForFlags.test.ts index f1ec7fbae..6169d9387 100644 --- a/src/__tests__/customizations/setAllPersonProfilePropertiesAsPersonPropertiesForFlags.test.ts +++ b/src/__tests__/customizations/setAllPersonProfilePropertiesAsPersonPropertiesForFlags.test.ts @@ -63,6 +63,7 @@ describe('setAllPersonPropertiesForFlags', () => { "$os_version": "4.4.0", "$referrer": "https://referrer.com", "$referring_domain": "referrer.com", + "_kx": null, "dclid": null, "fbclid": null, "gad_source": null, @@ -70,6 +71,7 @@ describe('setAllPersonPropertiesForFlags', () => { "gclid": null, "gclsrc": null, "igshid": null, + "irclid": null, "li_fat_id": null, "mc_cid": null, "msclkid": null, diff --git a/src/__tests__/personProcessing.test.ts b/src/__tests__/personProcessing.test.ts index a384029b9..ce0e92361 100644 --- a/src/__tests__/personProcessing.test.ts +++ b/src/__tests__/personProcessing.test.ts @@ -7,6 +7,7 @@ import { RemoteConfig } from '../types' const INITIAL_CAMPAIGN_PARAMS_NULL = { $initial_current_url: null, + $initial__kx: null, $initial_dclid: null, $initial_fbclid: null, $initial_gad_source: null, @@ -15,6 +16,7 @@ const INITIAL_CAMPAIGN_PARAMS_NULL = { $initial_gclsrc: null, $initial_host: null, $initial_igshid: null, + $initial_irclid: null, $initial_li_fat_id: null, $initial_mc_cid: null, $initial_msclkid: null, diff --git a/src/utils/event-utils.ts b/src/utils/event-utils.ts index fdb69a23c..f9da2a239 100644 --- a/src/utils/event-utils.ts +++ b/src/utils/event-utils.ts @@ -30,6 +30,8 @@ export const CAMPAIGN_PARAMS = [ 'igshid', // instagram 'ttclid', // tiktok 'rdt_cid', // reddit + 'irclid', // impact + '_kx', // klaviyo ] export const EVENT_TO_PERSON_PROPERTIES = [