Skip to content

Commit

Permalink
More analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Micheal Harker committed May 28, 2014
1 parent 7b1e0a6 commit 00ab79b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/sync.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->

Expand Down
6 changes: 6 additions & 0 deletions app/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class App extends Spine.Controller
'event': 'Open App',
'properties': {
'os': @getOS(),
'country': @getCountry(),
'language': navigator.language,
'version': localStorage.version
}
})
Expand Down Expand Up @@ -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

0 comments on commit 00ab79b

Please sign in to comment.