Fix for missing GA visitor config

pull/1038/head
Louis Vézina 5 years ago
parent cb192d7208
commit 02255828bc

@ -34,6 +34,9 @@ def track_event(category=None, action=None, label=None):
visitor.user_agent = os.environ.get("SZ_USER_AGENT")
if visitor.unique_id > int(0x7fffffff):
visitor.unique_id = random.randint(0, 0x7fffffff)
else:
visitor = Visitor()
visitor.unique_id = random.randint(0, 0x7fffffff)
except:
visitor = Visitor()
visitor.unique_id = random.randint(0, 0x7fffffff)

Binary file not shown.
Loading…
Cancel
Save