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

26 lines
753 B
Text

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}")
script(type="text/javascript")
Recurly.config(!{recurlyConfig})
var recurlySubscriptionFormConfig = !{subscriptionFormOptions}
recurlySubscriptionFormConfig.successHandler = function(){
ga('send', 'event', 'subscription-funnel', 'subscribed')
}
Recurly.buildSubscriptionForm(recurlySubscriptionFormConfig);
include ../general/small-footer