8000 Use HTTPS instead of HTTP for Google Analytics in Python samples by thomasgassmann · Pull Request #1699 · GoogleCloudPlatform/python-docs-samples · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appengine/flexible/analytics/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def track_event(category, action, label=None, value=0):
}

response = requests.post(
'http://www.google-analytics.com/collect', data=data)
'https://www.google-analytics.com/collect', data=data)

# If the request fails, this will raise a RequestException. Depending
# on your application's needs, this may be a non-error and can be caught
Expand Down
2 changes: 1 addition & 1 deletion appengine/standard/analytics/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def track_event(category, action, label=None, value=0):
}

response = requests.post(
'http://www.google-analytics.com/collect', data=data)
'https://www.google-analytics.com/collect', data=data)

# If the request fails, this will raise a RequestException. Depending
# on your application's needs, this may be a non-error and can be caught
Expand Down
0