: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 OpenAI Ads oppref as a campaign property (#103854)
Luke Belton8c82f5267776
diff --git a/frontend/src/taxonomy/core-filter-definitions-by-group.json b/frontend/src/taxonomy/core-filter-definitions-by-group.jsonindex b97b54680068..73abca3f1ed3 100644--- a/frontend/src/taxonomy/core-filter-definitions-by-group.json+++ b/frontend/src/taxonomy/core-filter-definitions-by-group.json@@ -3973,6 +3973,10 @@"description": "Microsoft Click ID","label": "msclkid"},+ "oppref": {+ "description": "OpenAI Ads Click ID",+ "label": "oppref"+ },"previous_build": {"description": "The previous build number for the app","examples": [@@ -7240,6 +7244,10 @@"description": "Microsoft Click ID Data from the first time this user was seen.","label": "Initial msclkid"},+ "$initial_oppref": {+ "description": "OpenAI Ads Click ID Data from the first time this user was seen.",+ "label": "Initial oppref"+ },"$initial_os": {"description": "The operating system of the user. Data from the first time this user was seen.","examples": [@@ -9400,6 +9408,10 @@"description": "Microsoft Click ID Data from the last time this user was seen.","label": "Latest msclkid"},+ "oppref": {+ "description": "OpenAI Ads Click ID Data from the last time this user was seen.",+ "label": "Latest oppref"+ },"previous_build": {"description": "The previous build number for the app","examples": [diff --git a/nodejs/src/common/persons/person-property-utils.ts b/nodejs/src/common/persons/person-property-utils.tsindex 970488cb7822..de5de8e77694 100644--- a/nodejs/src/common/persons/person-property-utils.ts+++ b/nodejs/src/common/persons/person-property-utils.ts@@ -57,6 +57,7 @@ const CAMPAIGN_PROPERTIES = new Set(['epik','qclid','sccid',+ 'oppref', // openai ads])// Session and page tracking propertiesdiff --git a/posthog/taxonomy/taxonomy.py b/posthog/taxonomy/taxonomy.pyindex dcb69b2b40b0..4c74934c4a66 100644--- a/posthog/taxonomy/taxonomy.py+++ b/posthog/taxonomy/taxonomy.py@@ -65,6 +65,7 @@ CAMPAIGN_PROPERTIES: list[str] = ["epik", # pinterest"qclid", # quora"sccid", # snapchat+ "oppref", # openai ads"irclid", # impact"_kx", # klaviyo]@@ -2064,6 +2065,10 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {"label": "sccid","description": "Snapchat Click ID",},+ "oppref": {+ "label": "oppref",+ "description": "OpenAI Ads 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 bec7bde39112..f6d7dfd70870 100644--- a/rust/feature-flags/src/flags/flag_matching_utils.rs+++ b/rust/feature-flags/src/flags/flag_matching_utils.rs@@ -100,6 +100,7 @@ static INITIAL_PROPERTY_MAP: Lazy<HashMap<&'static str, &'static str>> = Lazy::n("epik", "$initial_epik"),("qclid", "$initial_qclid"),("sccid", "$initial_sccid"),+ ("oppref", "$initial_oppref"),("irclid", "$initial_irclid"),("_kx", "$initial__kx"),])diff --git a/rust/personhog-common/src/properties.rs b/rust/personhog-common/src/properties.rsindex d8b22ecd69cb..5a5d825d3993 100644--- a/rust/personhog-common/src/properties.rs+++ b/rust/personhog-common/src/properties.rs@@ -73,6 +73,7 @@ static PROTECTED_PROPERTIES: LazyLock<HashSet<&'static str>> = LazyLock::new(||"epik","qclid","sccid",+ "oppref","$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 f905422d9cbe..4a5b974772c1 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); 244] = [+pub static PROPERTY_DEFINITION_ALIASES: [(&str, &str); 245] = [("$last_posthog_reset","timestamp of last call to `reset` in the web sdk",@@ -300,6 +300,7 @@ pub static PROPERTY_DEFINITION_ALIASES: [(&str, &str); 244] = [("build", "app build"),("previous_build", "app previous build"),("gclid", "gclid"),+ ("oppref", "oppref"),("rdt_cid", "rdt_cid"),("irclid", "irclid"),("_kx", "_kx"),