overleaf/services/web/app/views/subscriptions/new.jade

27 lines
753 B
Text
Raw Normal View History

2014-02-12 10:23:40 +00:00
extends ../layout
block content
- locals.supressDefaultJs = true
script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js', baseurl=jsPath)
script(src=jsPath+'libs/recurly.min.js')
link(rel='stylesheet', href='/recurly/recurly.css')
#subscribeForm.box Loading subscription form...
script(type="text/javascript")
ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")
2014-02-12 10:23:40 +00:00
script(type="text/javascript")
Recurly.config(!{recurlyConfig})
var recurlySubscriptionFormConfig = !{subscriptionFormOptions}
recurlySubscriptionFormConfig.successHandler = function(){
ga('send', 'event', 'subscription-funnel', 'subscribed')
}
Recurly.buildSubscriptionForm(recurlySubscriptionFormConfig);
2014-02-12 10:23:40 +00:00
include ../general/small-footer