File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,19 @@ window.Sync =
46
46
Spine .trigger ' sync:unauthorized'
47
47
Spine .trigger ' sync:stop'
48
48
49
+ # analytics
50
+ anal : ->
51
+ $ .ajax (
52
+ Sync .generateRequest ({request : " me" })
53
+ ).done (info) ->
54
+ anal =
55
+ name : info .display_name
56
+ email : info .email
57
+ countryCode : info .country
58
+ language : navigator .language
59
+ platform : navigator .platform
60
+ $ .get (" http://banana.caffeinatedco.de/api/springseed.php" , anal)
61
+
49
62
auth : (callback ) ->
50
63
51
64
# Saves data after getting it from the auth server
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ class App extends Spine.Controller
78
78
79
79
# We'll put the sync conenct here as well.
80
80
Spine .trigger ' sync:authorized' if Sync .oauth .service != " undefined"
81
+ Sync .anal ()
81
82
82
83
# Stuff for node webkit.
83
84
$ (' body' ).on ' mousedown' , ' a' , (e ) ->
You can’t perform that action at this time.
0 commit comments