- 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
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script")
;r.type="text/javascript";r.async=true
;r.src="https://cdn.amplitude.com/libs/amplitude-4.5.2-min.gz.js"
;r.onload=function(){if(e.amplitude.runQueuedFunctions){
e.amplitude.runQueuedFunctions()}else{
console.log("[Amplitude] Error: could not load SDK")}}
;var i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)
;function s(e,t){e.prototype[t]=function(){
this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));return this}}
var o=function(){this._q=[];return this}
;var a=["add","append","clearAll","prepend","set","setOnce","unset"]
;for(var u=0;u<a.length;u++){s(o,a[u])}n.Identify=o;var c=function(){this._q=[]
;return this}
;var l=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"]
;for(var p=0;p<l.length;p++){s(c,l[p])}n.Revenue=c
;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut",
"setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify",
"clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","logEventWithTimestamp",
"logEventWithGroups","setSessionId","resetSessionId"]
;function v(e){function t(t){e[t]=function(){
e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}
for(var n=0;n<d.length;n++){t(d[n])}}v(n);n.getInstance=function(e){
e=(!e||e.length===0?"$default_instance":e).toLowerCase()
;if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};v(n._iq[e])}return n._iq[e]}
;e.amplitude=n})(window,document);
var ampApi = /\.stg|localhost/i.test(window.location.href) ? '0235cc89d7a53dbb326572b219e2d92c' : 'ecbcbc42f8533abf8b32e0804af0c362'
amplitude.getInstance().init(ampApi);
var pathUrl = window.location.href
// Step 1 - Account Creation Started - email collection
if (/freetrial\/web\/index\//i.test(window.location.href))
{
console.log('Step 1: email password')
try
{
var eventProperties = {
'Trial Length': '3 Days',
'Billing Cycle': 'annual'
};
amplitude.getInstance().logEvent('Account Creation Started', eventProperties);
// Record any errors (page will load with eVar52 set
if (typeof rs != 'undefined' && typeof rs.eVar52 != 'undefined')
{
var eventProperties2 = {
'Error Type': rs.eVar52,
'Error Step': 'Email & Password Step'
};
amplitude.getInstance().logEvent('Account Creation Error Occurred', eventProperties2);
}
// Email step completed
document.getElementById('billing:email').addEventListener('blur', function(e) {
amplitude.getInstance().logEvent('Step Name', 'Name Entered');
})
// Password step completed
document.getElementById('password').addEventListener('blur', function(e) {
amplitude.getInstance().logEvent('Step Name', 'Password Entered');
})
}
catch (e) {}
}
// Step 2 - - payment info
if (/freetrial\/web\/smart\//i.test(window.location.href))
{
// Cannot duplicate error
}
// Step 3 - Success
if (/freetrial\/web\/success\//i.test(window.location.href))
{
// Cannot duplicate error
}