From b87b6547f748ca9d59b83c4d16bdb0e3ba8d42a5 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Mon, 6 Feb 2023 09:50:08 +0000 Subject: [PATCH 1/3] Add properties to tutorial --- contents/tutorials/property-filter.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/contents/tutorials/property-filter.md b/contents/tutorials/property-filter.md index a22ae917ad2e..86def61e1999 100644 --- a/contents/tutorials/property-filter.md +++ b/contents/tutorials/property-filter.md @@ -44,6 +44,30 @@ To configure the app to remove selected properties, simply select the blue gear ![PostHog Property Filter](../images/tutorials/property-filter/property-filter-tutorial-2.png) +## The full list of GeoIP properties + +...at time of writing are + +* $geoip_city_name +* $geoip_country_name +* $geoip_country_code +* $geoip_continent_name +* $geoip_continent_code +* $geoip_postal_code +* $geoip_latitude +* $geoip_longitude +* $geoip_time_zone +* $geoip_subdivision_1_name +* $geoip_subdivision_1_code +* $geoip_subdivision_2_name +* $geoip_subdivision_2_code +* $geoip_subdivision_3_code +* $geoip_subdivision_3_name + +You can [check the current list in the source code for the app.](https://github.com/PostHog/posthog-plugin-geoip) + +## A working example + Below is the full configuration Witty Works uses to filter out unwanted data before it is written to PostHog's event log: ```$geoip_city_name,$geoip_longitude,$geoip_latitude,$ip,$geoip_postal_code,$current_url,$performance_raw,$referrer,$initial_referrer,$pathname``` From 067368cf0a111aa6633cceff23247099ed6d4ec6 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Mon, 6 Feb 2023 10:42:30 +0000 Subject: [PATCH 2/3] Update property-filter.md --- contents/tutorials/property-filter.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/contents/tutorials/property-filter.md b/contents/tutorials/property-filter.md index 86def61e1999..47898c4ad170 100644 --- a/contents/tutorials/property-filter.md +++ b/contents/tutorials/property-filter.md @@ -44,7 +44,7 @@ To configure the app to remove selected properties, simply select the blue gear ![PostHog Property Filter](../images/tutorials/property-filter/property-filter-tutorial-2.png) -## The full list of GeoIP properties +## The full list of GeoIP properties ...at time of writing are @@ -66,6 +66,16 @@ To configure the app to remove selected properties, simply select the blue gear You can [check the current list in the source code for the app.](https://github.com/PostHog/posthog-plugin-geoip) +## Event and Person properties + +The GeoIP app sets [person properties using `$set` and `$set_once`](https://posthog.com/docs/integrate/user-properties). If you want to drop those properties prefix the geoip property name with either `$set` or `$set_once`. + +For example to ensure `$geoip_cityname` is _never_ stored on either events or persons you would configure: + +* $geoip_city_name (the event property) +* $set.$geoip_city_name (the person proprty) +* $setonce.$initial_geoip_city_name (the initial and never updated person property) + ## A working example Below is the full configuration Witty Works uses to filter out unwanted data before it is written to PostHog's event log: From a74c54026eb59f75e195cda11063a3f09f614a20 Mon Sep 17 00:00:00 2001 From: Neil Kakkar Date: Mon, 6 Feb 2023 10:50:56 +0000 Subject: [PATCH 3/3] Update contents/tutorials/property-filter.md --- contents/tutorials/property-filter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contents/tutorials/property-filter.md b/contents/tutorials/property-filter.md index 47898c4ad170..84ea81603e94 100644 --- a/contents/tutorials/property-filter.md +++ b/contents/tutorials/property-filter.md @@ -74,7 +74,7 @@ For example to ensure `$geoip_cityname` is _never_ stored on either events or pe * $geoip_city_name (the event property) * $set.$geoip_city_name (the person proprty) -* $setonce.$initial_geoip_city_name (the initial and never updated person property) +* $set_once.$initial_geoip_city_name (the initial and never updated person property) ## A working example