:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(ingestion): treat the Freebuff bfcid as a campaign property (#117217)
Rafael Audibertfcee5a8eb540
diff --git a/frontend/src/taxonomy/core-filter-definitions-by-group.json b/frontend/src/taxonomy/core-filter-definitions-by-group.jsonindex e8438859127c..e2eb162be1de 100644--- a/frontend/src/taxonomy/core-filter-definitions-by-group.json+++ b/frontend/src/taxonomy/core-filter-definitions-by-group.json@@ -2866,6 +2866,10 @@"description": "Klaviyo Tracking ID","label": "_kx"},+ "bfcid": {+ "description": "Freebuff Click ID",+ "label": "bfcid"+ },"build": {"description": "The build number for the app. Mobile SDKs send this on app lifecycle events only. Most events carry App build ($app_build) instead.","examples": ["1"],@@ -5361,6 +5365,10 @@"description": "The version of the app. Data from the first time this user was seen.","label": "Initial app version"},+ "$initial_bfcid": {+ "description": "Freebuff Click ID Data from the first time this user was seen.",+ "label": "Initial bfcid"+ },"$initial_browser": {"description": "Name of the browser the user has used. Data from the first time this user was seen.","examples": ["Chrome", "Firefox"],@@ -7056,6 +7064,10 @@"description": "Klaviyo Tracking ID Data from the last time this user was seen.","label": "Latest _kx"},+ "bfcid": {+ "description": "Freebuff Click ID Data from the last time this user was seen.",+ "label": "Latest bfcid"+ },"build": {"description": "The build number for the app. Mobile SDKs send this on app lifecycle events only. Most events carry App build ($app_build) instead.","examples": ["1"],diff --git a/nodejs/src/common/persons/person-property-utils.ts b/nodejs/src/common/persons/person-property-utils.tsindex de5de8e77694..0076343e9d25 100644--- a/nodejs/src/common/persons/person-property-utils.ts+++ b/nodejs/src/common/persons/person-property-utils.ts@@ -58,6 +58,7 @@ const CAMPAIGN_PROPERTIES = new Set(['qclid','sccid','oppref', // openai ads+ 'bfcid', // freebuff])// Session and page tracking propertiesdiff --git a/posthog/taxonomy/taxonomy.py b/posthog/taxonomy/taxonomy.pyindex f07cc15f3c16..919516052099 100644--- a/posthog/taxonomy/taxonomy.py+++ b/posthog/taxonomy/taxonomy.py@@ -66,6 +66,7 @@ CAMPAIGN_PROPERTIES: list[str] = ["qclid", # quora"sccid", # snapchat"oppref", # openai ads+ "bfcid", # freebuff"irclid", # impact"_kx", # klaviyo]@@ -2081,6 +2082,10 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {"label": "oppref","description": "OpenAI Ads Click ID",},+ "bfcid": {+ "label": "bfcid",+ "description": "Freebuff Click ID",+ },"irclid": {"label": "irclid","description": "Impact Click ID",diff --git a/rust/feature-flags/src/flags/flag_matching_utils.rs b/rust/feature-flags/src/flags/flag_matching_utils.rsindex 2b36f1d8b774..ce15772e7956 100644--- a/rust/feature-flags/src/flags/flag_matching_utils.rs+++ b/rust/feature-flags/src/flags/flag_matching_utils.rs@@ -102,6 +102,7 @@ static INITIAL_PROPERTY_MAP: Lazy<HashMap<&'static str, &'static str>> = Lazy::n("qclid", "$initial_qclid"),("sccid", "$initial_sccid"),("oppref", "$initial_oppref"),+ ("bfcid", "$initial_bfcid"),("irclid", "$initial_irclid"),("_kx", "$initial__kx"),])diff --git a/rust/personhog-common/src/properties.rs b/rust/personhog-common/src/properties.rsindex 5a5d825d3993..933d9534b9aa 100644--- a/rust/personhog-common/src/properties.rs+++ b/rust/personhog-common/src/properties.rs@@ -74,6 +74,7 @@ static PROTECTED_PROPERTIES: LazyLock<HashSet<&'static str>> = LazyLock::new(||"qclid","sccid","oppref",+ "bfcid","$fbc",// Session and page tracking"$session_id",diff --git a/rust/property-defs-rs/src/api/v1/constants.rs b/rust/property-defs-rs/src/api/v1/constants.rsindex 4a5b974772c1..f18f67af108a 100644--- a/rust/property-defs-rs/src/api/v1/constants.rs+++ b/rust/property-defs-rs/src/api/v1/constants.rs@@ -66,7 +66,7 @@ pub const EVENTS_HIDDEN_PROPERTY_DEFINITIONS: [&str; 14] = [// **IMPORTANT** we need to keep this in sync the w/Django original!! see below for more details:// https://github.com/PostHog/posthog/blob/master/posthog/taxonomy/property_definition_api.py#L326-L339// https://github.com/PostHog/posthog/blob/master/posthog/taxonomy/taxonomy.py#L1627-L1631-pub static PROPERTY_DEFINITION_ALIASES: [(&str, &str); 245] = [+pub static PROPERTY_DEFINITION_ALIASES: [(&str, &str); 246] = [("$last_posthog_reset","timestamp of last call to `reset` in the web sdk",@@ -301,6 +301,7 @@ pub static PROPERTY_DEFINITION_ALIASES: [(&str, &str); 245] = [("previous_build", "app previous build"),("gclid", "gclid"),("oppref", "oppref"),+ ("bfcid", "bfcid"),("rdt_cid", "rdt_cid"),("irclid", "irclid"),("_kx", "_kx"),