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