Skip to content

Commit 4527760

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 d45c046 commit 4527760

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
@@ -155,7 +155,7 @@ def _build_tags(self, request, user_id, user_email):
155155
# Extract IP address
156156
ip_address = request.headers.get("X-Forwarded-For")
157157
if ip_address:
158-
tags["$ip_address"] = ip_address
158+
tags["$ip"] = ip_address
159159

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

0 commit comments

Comments
 (0)