From fff3790119c03086bb82050ea34d0357226496bb Mon Sep 17 00:00:00 2001 From: sfaulds Date: Thu, 27 Oct 2016 15:43:54 +1100 Subject: [PATCH] add server id to startup event --- addon.xml | 2 +- resources/lib/service_entry.py | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index f534477c..77ff3219 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/service_entry.py b/resources/lib/service_entry.py index de8ed8b6..0de089e1 100644 --- a/resources/lib/service_entry.py +++ b/resources/lib/service_entry.py @@ -20,6 +20,7 @@ import videonodes import websocket_client as wsc from utils import window, settings, dialog, language as lang from ga_client import GoogleAnalytics +import md5 ################################################################################################# @@ -156,9 +157,13 @@ class Service(object): self.shutdown() def _startup(self): - + + serverId = settings('serverId') + if(serverId != None): + serverId = md5.new(serverId).hexdigest() + ga = GoogleAnalytics() - ga.sendEventData("Application", "Startup") + ga.sendEventData("Application", "Startup", serverId) # Start up events self.warn_auth = True