Skip to content

Commit 00ab79b

Browse files
author
Micheal Harker
committed
More analytics
1 parent 7b1e0a6 commit 00ab79b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/controllers/sync.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ window.Sync =
5858
language: navigator.language
5959
platform: navigator.platform
6060
version: localStorage.version
61-
$.get("http://api.getspringseed.com/client", anal)
61+
# $.get("http://api.getspringseed.com/client", anal)
6262

6363
auth: (callback) ->
6464

app/index.coffee

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class App extends Spine.Controller
5252
'event': 'Open App',
5353
'properties': {
5454
'os': @getOS(),
55+
'country': @getCountry(),
56+
'language': navigator.language,
5557
'version': localStorage.version
5658
}
5759
})
@@ -130,4 +132,8 @@ class App extends Spine.Controller
130132
return "Windows 8" if ua.indexOf("Windows NT 6.2") > -1
131133
return "Windows 8.1" if ua.indexOf("Windows NT 6.3") > -1
132134

135+
getCountry: ->
136+
$.getJSON 'http://freegeoip.net/json/', (loc) ->
137+
return loc.country_name
138+
133139
module.exports = App

0 commit comments

Comments
 (0)