8000 Use HTTPS instead of HTTP for Google Analytics in Python samples (#1699) · di/python-docs-samples@5f1a321 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f1a321

Browse files
thomasgassmanngguuss
authored andcommitted
Use HTTPS instead of HTTP for Google Analytics in Python samples (GoogleCloudPlatform#1699)
1 parent 72c7915 commit 5f1a321

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

appengine/flexible/analytics/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def track_event(category, action, label=None, value=0):
4242
}
4343

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

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

appengine/standard/analytics/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def track_event(category, action, label=None, value=0):
4545
}
4646

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

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

0 commit comments

Comments
 (0)
0