Add IP to all python Segment tracking calls

This commit is contained in:
Bill DeRusha
2015-09-30 10:58:07 -04:00
parent e0c430ffe3
commit ca6633bd98
12 changed files with 20 additions and 4 deletions

View File

@@ -604,6 +604,7 @@ def login_analytics(strategy, auth_entry, *args, **kwargs):
'provider': getattr(kwargs['backend'], 'name')
},
context={
'ip': tracking_context.get('ip'),
'Google Analytics': {
'clientId': tracking_context.get('client_id')
}