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) mixin printPlans(plans.individualAnnualPlans)
script(type="text/javascript") script(type="text/javascript")
$('#cancelSubscription').on("click", function() { $('#cancelSubscription').on("click", function() {
ga('send', 'event', 'subscription-funnel', 'cancelation') ga('send', 'event', 'subscription-funnel', 'cancelation')
}) })

View file

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