Skip to content

Commit dfdf4df

Browse files
authored
Merge pull request #4347 from rtfd/davidfischer/ga-workaround-uid
Remove the UID from the GA measurement protocol
2 parents 9c8fa66 + 1df4776 commit dfdf4df

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

readthedocs/analytics/utils.py

-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ def anonymize_user_agent(user_agent):
5757

5858
def send_to_analytics(data):
5959
"""Sends data to Google Analytics"""
60-
if data.get('uip') and data.get('ua'):
61-
data['uid'] = generate_client_id(data['uip'], data['ua'])
62-
6360
if 'uip' in data:
6461
# Anonymize IP address if applicable
6562
data['uip'] = anonymize_ip_address(data['uip'])

0 commit comments

Comments
 (0)