Skip to content

Commit

Permalink
Merge pull request #4347 from rtfd/davidfischer/ga-workaround-uid
Browse files Browse the repository at this point in the history
Remove the UID from the GA measurement protocol
  • Loading branch information
davidfischer committed Jul 12, 2018
2 parents 9c8fa66 + 1df4776 commit dfdf4df
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions readthedocs/analytics/utils.py
Expand Up @@ -57,9 +57,6 @@ def anonymize_user_agent(user_agent):

def send_to_analytics(data):
"""Sends data to Google Analytics"""
if data.get('uip') and data.get('ua'):
data['uid'] = generate_client_id(data['uip'], data['ua'])

if 'uip' in data:
# Anonymize IP address if applicable
data['uip'] = anonymize_ip_address(data['uip'])
Expand Down

0 comments on commit dfdf4df

Please sign in to comment.