mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Enable analytics tracking on request quote view
This commit is contained in:
parent
e75bca2b43
commit
b495c581a7
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,8 @@ module.exports = class RequestQuoteView extends RootView
|
|||
if @trialRequests.size()
|
||||
@trialRequest = @trialRequests.first()
|
||||
me.setRole 'teacher'
|
||||
if @trialRequest and @trialRequest.get('status') isnt 'submitted' and @trialRequest.get('status') isnt 'approved'
|
||||
window.tracker?.trackEvent 'View Trial Request', category: 'Teachers', label: 'View Trial Request', ['Mixpanel']
|
||||
super()
|
||||
|
||||
onSubmitForm: (e) ->
|
||||
|
@ -80,6 +82,7 @@ module.exports = class RequestQuoteView extends RootView
|
|||
|
||||
onTrialRequestSubmit: ->
|
||||
@$('form, #form-submit-success').toggleClass('hide')
|
||||
window.tracker?.trackEvent 'Submit Trial Request', category: 'Teachers', label: 'Trial Request', ['Mixpanel']
|
||||
|
||||
onClickLoginButton: ->
|
||||
modal = new AuthModal({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue