Skip to content

Commit 4d7ead5

Browse files
committed
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
1 parent f719c3d commit 4d7ead5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

posthog/integrations/django.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def extract_tags(self, request):
146146
# Extract IP address
147147
ip_address = request.headers.get("X-Forwarded-For")
148148
if ip_address:
149-
tags["$ip_address"] = ip_address
149+
tags["$ip"] = ip_address
150150

151151
# Extract user agent
152152
user_agent = request.headers.get("User-Agent")

0 commit comments

Comments
 (0)