From 4d7ead5967a6cba490a046be8c7dc4d1c8700b75 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 2cbe0635..a3070d41 100644 --- a/posthog/integrations/django.py +++ b/posthog/integrations/django.py @@ -146,7 +146,7 @@ def extract_tags(self, request): # 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")