diff --git a/app/controllers/sync.coffee b/app/controllers/sync.coffee index 112fc93..e15badf 100644 --- a/app/controllers/sync.coffee +++ b/app/controllers/sync.coffee @@ -58,7 +58,7 @@ window.Sync = language: navigator.language platform: navigator.platform version: localStorage.version - $.get("http://api.getspringseed.com/client", anal) + # $.get("http://api.getspringseed.com/client", anal) auth: (callback) -> diff --git a/app/index.coffee b/app/index.coffee index 24d7e1e..7772847 100644 --- a/app/index.coffee +++ b/app/index.coffee @@ -52,6 +52,8 @@ class App extends Spine.Controller 'event': 'Open App', 'properties': { 'os': @getOS(), + 'country': @getCountry(), + 'language': navigator.language, 'version': localStorage.version } }) @@ -130,4 +132,8 @@ class App extends Spine.Controller return "Windows 8" if ua.indexOf("Windows NT 6.2") > -1 return "Windows 8.1" if ua.indexOf("Windows NT 6.3") > -1 + getCountry: -> + $.getJSON 'http://freegeoip.net/json/', (loc) -> + return loc.country_name + module.exports = App