- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
<script>
console.log('Experience B loaded.')
window.addEventListener('load', function(e) {
console.log('Doc Loaded')
window.setTimeout(function() {
try {
window.vueData.abTest = 'OneForm'
vueData.content.body.masthead.form.h3 = 'Start today with a 3-day free trial'
$('.masthead p').css({'visibility' : 'hidden'})
$('.masthead h3').css({'font-size': '2.4em'})
// Update CTA text
vueData.$nextTick(function() {
var forms = window.vueData.$children.filter(function(e, i) {
return e.$options._componentTag == 'FormFreeTrial'
})
console.log(forms)
forms.forEach(function(e,i) {
e.content.cta.text = 'START LEARNING'
})
})
// Amplitude tracking
try {
var identify = new amplitude.Identify().prepend('Split Tests', 'homepage_freetrialsignup-oneform');
//var identify = new amplitude.Identify().prepend('Split Tests', 'homepage_freetrialsignup-oneform');
amplitude.getInstance().identify(identify);
amplitude.getInstance().logEvent('Test Started', {
'Base URL' : window.origin + window.location.pathname,
'Split Test' : "homepage_freetrialsignup-oneform"
});
} catch (e) {
console.warn('Could not fire amplitude "Test Started" event. Error below:')
console.log(e)
}
} catch (e) {
console.log('Could not load code for test experience');
console.log(e)
}
},10)
});
</script>