diff --git a/website/assets/.eslintrc b/website/assets/.eslintrc index 94cfe4e273..96d18f3427 100644 --- a/website/assets/.eslintrc +++ b/website/assets/.eslintrc @@ -48,7 +48,7 @@ "moment": true, "docsearch": true, "Chart": true, - // "google": true, + "gtag": true, // ...etc. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/website/assets/js/pages/contact.page.js b/website/assets/js/pages/contact.page.js index 3a4314bf01..5b8865b67c 100644 --- a/website/assets/js/pages/contact.page.js +++ b/website/assets/js/pages/contact.page.js @@ -80,13 +80,18 @@ parasails.registerPage('contact', { methods: { submittedContactForm: async function() { - + if(typeof gtag !== 'undefined'){ + gtag('event','website_contact_forms'); + } // Show the success message. this.cloudSuccess = true; }, submittedTalkToUsForm: async function() { this.syncing = true; + if(typeof gtag !== 'undefined'){ + gtag('event','website_contact_forms'); + } if(this.formData.numberOfHosts > 700){ this.goto(`https://calendly.com/fleetdm/talk-to-us?email=${encodeURIComponent(this.formData.emailAddress)}&name=${encodeURIComponent(this.formData.firstName+' '+this.formData.lastName)}`); } else { diff --git a/website/assets/js/pages/docs/basic-documentation.page.js b/website/assets/js/pages/docs/basic-documentation.page.js index 5b7262b8f2..a2540321f7 100644 --- a/website/assets/js/pages/docs/basic-documentation.page.js +++ b/website/assets/js/pages/docs/basic-documentation.page.js @@ -222,6 +222,13 @@ parasails.registerPage('basic-documentation', { // ╩╝╚╝ ╩ ╚═╝╩╚═╩ ╩╚═╝ ╩ ╩╚═╝╝╚╝╚═╝ methods: { + clickSwagRequestCTA: function () { + if(typeof gtag !== 'undefined') { + gtag('event','website_swag_request'); + } + this.goto('https://kqphpqst851.typeform.com/to/ZfA3sOu0'); + }, + clickCTA: function (slug) { this.goto(slug); }, diff --git a/website/assets/js/pages/entrance/signup.page.js b/website/assets/js/pages/entrance/signup.page.js index 598e3b073e..4f0904a935 100644 --- a/website/assets/js/pages/entrance/signup.page.js +++ b/website/assets/js/pages/entrance/signup.page.js @@ -67,6 +67,9 @@ parasails.registerPage('signup', { // redirect to the /start page. // > (Note that we re-enable the syncing state here. This is on purpose-- // > to make sure the spinner stays there until the page navigation finishes.) + if(typeof gtag !== 'undefined'){ + gtag('event','website_sign_up'); + } this.syncing = true; this.goto(this.pageToRedirectToAfterRegistration);// « / start if the user came here from the start now button, or customers/new-license if the user came here from the "Get your license" link. } diff --git a/website/views/pages/docs/basic-documentation.ejs b/website/views/pages/docs/basic-documentation.ejs index 8e6853c7b7..eb47296580 100644 --- a/website/views/pages/docs/basic-documentation.ejs +++ b/website/views/pages/docs/basic-documentation.ejs @@ -157,7 +157,7 @@ Releases Support