overleaf/services/web/public/coffee/event_tracking.coffee
2014-02-12 10:23:40 +00:00

15 lines
461 B
CoffeeScript

require [
"libs/bootstrap/bootstrap2full"
], ()->
#plans page
$('a.sign_up_now').on 'click', ->
ga 'send', 'event', 'button', 'click', 'premium-sign-up'
$('#annual-pricing').on 'click', ->
ga 'send', 'event', 'button', 'click', 'student-prices'
$('#student-pricing').on 'click', ->
ga('send', 'event', 'button', 'click', 'student-prices')
#plans link
$('#plansLink').on 'click', ->
ga 'send', 'event', 'button', 'click', 'plans-link-menu-bar'