: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
fix(settings): note GeoIP doesn't enrich in cookieless mode (#59027)
Christiaan Hendriksena451b108eb9d
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 7728084ea4ba..70798bce4c53 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -1113,9 +1113,9 @@ snapshots:components-search--product-recents-and-starred--light:hash: v1.k794b7964.6d7ebbb457b003a589697f6dd6c054fdc6405868b4c6b3a616b004b8faa97ebd.klxLctEaGXfv7Ndvi9IfZL2U7iMfOdJjO805z_Kk8-Ucomponents-search--searching--dark:- hash: v1.k794b7964.6bdb745d1eef8c2715e14fa7c3fcf5e2587be684ad61b4c5d508d4480ac16651.KMHF_iUkPFcKN8dxYuB55Dj7rfS92_DNvfTITHBDVgE+ hash: v1.k794b7964.42d2564402c84b62e5b6a0d989d8d3c5ac0981f2cacb7bbb3c94e308ec048142.TFTKhSqhGyw_ghSjZa8Dn6-RaVKrJThtl5Qzn_1TW7Qcomponents-search--searching--light:- hash: v1.k794b7964.3d77f5613150c35c1cc81363c28df7174cfecedd49e349affa41ecab43026e9a.wShurb5MR7IrIJVPnZlZwbnhACY1VUswSpMuADwa9po+ hash: v1.k794b7964.15e3e049951af870576d917fb5577f346eaaba44c41ef6777cf612b5bd12c397.vAC6iJHI7gFpMGCh-NJLilZZzAwiV_j1WJnnGxknlhIcomponents-sentencelist--full-sentence--dark:hash: v1.k794b7964.9d72ed5224f75be3f53f1ba8edc2547978e519aa46a57cc97eef9087b403cb7d.3yHHiA7NW-p6vVSlM-2nPx7Nbk7wuTr5SA9Av2nW--gcomponents-sentencelist--full-sentence--light:@@ -3897,7 +3897,7 @@ snapshots:scenes-app-dashboards--edit--dark:hash: v1.k794b7964.bd3d07247d36e8ec8da6ac4786ccb76ae4ab25f8bf2ee715a65116ea0a351d7e.k2IamoJqoBz3dJd0G5BLinh4FInyFYw9whCsiBbn-JAscenes-app-dashboards--edit--light:- hash: v1.k794b7964.b83f03bb01d155e9d0077afe6a5143d5ef2756b748fd7d90e4e06e1070e00338.OQ-7cSRff6ocABcMOW5IDEewOFa4hyXR0xUgM6sz1Wk+ hash: v1.k794b7964.543acaca813f958c9fcb37d71de69db98826752f2c766175c299433df8927da7.2SQ-1Ctzbkg4E3HPsXzF4agVBwBhdQtvQXR9dI3ROfcscenes-app-dashboards--erroring--dark:hash: v1.k794b7964.31ef520209b2bb175218843edcd902920dbcb6ec541208828253bafab0aed0db.MrXtHs9BgfMuLZRuGROZutD-wkNy9eGEYte2Dx07Sssscenes-app-dashboards--erroring--light:@@ -5383,9 +5383,9 @@ snapshots:scenes-app-settings-environment--settings-environment-max--light:hash: v1.k794b7964.807a417df380ed5d3543e46bd5c5c24bb4b0b8fe09e2e738fa023aaa4cf3468e.WeV1IuyjMQnwJW94bwQU9LCWy93Swy9-i1n0-b6OHW4scenes-app-settings-environment--settings-environment-privacy--dark:- hash: v1.k794b7964.1768b9c0ed94ef070309091ca1b3f5c9e07f06ecafecc2c90f376a317bffc632.3zs99MS8uzlHHFmNzmTEoGqDNYZQNJu_09pSwfr_17U+ hash: v1.k794b7964.471394518aa1f5bf4e746dd9078825271b0a920ce698f095b66779712f45bbde.bN0q-jKyEGSu53coXzATrKMc9s3uVfn9e20TCa-wzcgscenes-app-settings-environment--settings-environment-privacy--light:- hash: v1.k794b7964.6678424b8bd220e3fdbdfc30a960afebefb7dcbe396f22f7f1b178bb32823296.AlZRtpXXcgFx0UhDki89rSCM0Qec0Q7UKWR7HRG4zmE+ hash: v1.k794b7964.331aaa160058679c57cdd30ee2a6fff190e2635dcf31291452ca41ce4dcc3124.xXWnbZUzAjiJBTXq4VciwbgdVx2LHX5IbXf8AmUrAdsscenes-app-settings-environment--settings-environment-product-analytics--dark:hash: v1.k794b7964.7b8748b5fea6798b0182f79be7d424ddda1c0785ccf5b29369dc382e9af5dd6b.ee_uI5o3E7g4OrjY4hln51II5mRQyAtV6V9Gh2JdctIscenes-app-settings-environment--settings-environment-product-analytics--light:@@ -5403,9 +5403,9 @@ snapshots:scenes-app-settings-environment--settings-environment-surveys--light:hash: v1.k794b7964.24d64ab1d661c545012cb68e33f18c13962c4c78e9aac553b0959a778f5e4162.0k-24BTenxh0XN1BQAMoQZPb2odgSyXG0wdksv-v2Twscenes-app-settings-environment--settings-environment-web-analytics--dark:- hash: v1.k794b7964.3fe5ba0d0d04fe51ba01f9aa1d5576bdde6de565c723afed7516218ef58bbdd1.vqkB9MJYUSuYwaZLqkB1Gmjdn_DYl-Pmux5xVuZEhH4+ hash: v1.k794b7964.80cbef3f975392fe19f034368cc1b31563c976ed8a52be0842385326b057b087.gUQIZBetPa4SL5LoYi0b9r2lXFrbEpwe0_pJDhqc8Bwscenes-app-settings-environment--settings-environment-web-analytics--light:- hash: v1.k794b7964.101d31cc64bb05ee2a7c451bd8c58b2d6619b76580782339fb31bb50e72e8a27.7xLFKL8W8uT4qQleWs3Vx4vdb82okiPc-v56qhAo-y4+ hash: v1.k794b7964.844cf12a2eb581ccaa687c269df9023c311de74900cd37898aad0a582721d8e7.bF6Jd4B-CTY51F-OOTdO-WQxzkOMoRV2308v_0oC4zQscenes-app-settings-organization--settings-organization-authentication--dark:hash: v1.k794b7964.9a9f175128246ccee766381fdd72f841286ff17af2719ce51434d98c454615cb.9wXBrsT05m8l5mPDBSovnMjYl7AUHNjVIWV4pmhSdkYscenes-app-settings-organization--settings-organization-authentication--light:diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsxindex 7e86e397aced..bceaa34fd30b 100644--- a/frontend/src/scenes/settings/SettingsMap.tsx+++ b/frontend/src/scenes/settings/SettingsMap.tsx@@ -1243,7 +1243,7 @@ export const SETTINGS_MAP: SettingSection[] = [id: 'datacapture',title: 'IP data capture configuration',description:- 'When enabled, client IP addresses will not be stored with your events. Transformations like GeoIP enrichment and bot detection can still use the IP before it is discarded.',+ 'When enabled, client IP addresses will not be stored with your events. Transformations like GeoIP enrichment and bot detection can still use the IP before it is discarded. Note: this does not apply when Cookieless server hash mode is enabled, which strips the IP before transformations run.',docsUrl: 'https://posthog.com/docs/privacy',component: <IPCapture />,keywords: ['ip', 'anonymize', 'gdpr', 'privacy', 'geolocation', 'discard'],diff --git a/frontend/src/scenes/settings/environment/CookielessServerHashMode.tsx b/frontend/src/scenes/settings/environment/CookielessServerHashMode.tsxindex 8e7752c8fd26..2b160ab243eb 100644--- a/frontend/src/scenes/settings/environment/CookielessServerHashMode.tsx+++ b/frontend/src/scenes/settings/environment/CookielessServerHashMode.tsx@@ -1,6 +1,8 @@import { useActions, useValues } from 'kea'import { useState } from 'react'+import { LemonBanner } from '@posthog/lemon-ui'+import { RestrictionScope, useRestrictedArea } from 'lib/components/RestrictedArea'import { TeamMembershipLevel } from 'lib/constants'import { LemonButton } from 'lib/lemon-ui/LemonButton'@@ -59,6 +61,11 @@ export function CookielessServerHashModeSetting(): JSX.Element {return (<>+ <LemonBanner type="info" className="mb-4">+ When Cookieless server hash mode is enabled, IP-based transformations like GeoIP enrichment and bot+ detection will not enrich events. The IP is hashed into the distinct ID and stripped before+ transformations run.+ </LemonBanner><LemonRadio value={setting} onChange={setSetting} options={optionsToShow} /><div className="mt-4"><LemonButton