From 4527760d7796a84487a1460d634d540b468873da Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Tue, 28 Oct 2025 12:02:26 -0600 Subject: [PATCH] fix: use $ip not $ip_addess from what I can tell, $ip is what is used on the web and is probably the correct field --- posthog/integrations/django.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/integrations/django.py b/posthog/integrations/django.py index 55579f57..ab66dd9b 100644 --- a/posthog/integrations/django.py +++ b/posthog/integrations/django.py @@ -155,7 +155,7 @@ def _build_tags(self, request, user_id, user_email): # Extract IP address ip_address = request.headers.get("X-Forwarded-For") if ip_address: - tags["$ip_address"] = ip_address + tags["$ip"] = ip_address # Extract user agent user_agent = request.headers.get("User-Agent")