changed ga tracking created -> subscribed, fixed indentation on cancel sub events

This commit is contained in:
Henry Oswald 2014-03-11 11:22:03 +00:00
parent 92c68177a6
commit 260c5210a6
2 changed files with 5 additions and 5 deletions

View file

@ -80,10 +80,10 @@ block content
mixin printPlans(plans.individualAnnualPlans)
script(type="text/javascript")
$('#cancelSubscription').on("click", function() {
ga('send', 'event', 'subscription-funnel', 'cancelation')
})
script(type="text/javascript")
$('#cancelSubscription').on("click", function() {
ga('send', 'event', 'subscription-funnel', 'cancelation')
})

View file

@ -16,7 +16,7 @@ block content
Recurly.config(!{recurlyConfig})
var recurlySubscriptionFormConfig = !{subscriptionFormOptions}
recurlySubscriptionFormConfig.successHandler = function(){
ga('send', 'event', 'subscription-funnel', 'created')
ga('send', 'event', 'subscription-funnel', 'subscribed')
}
Recurly.buildSubscriptionForm(recurlySubscriptionFormConfig);