diff --git a/website/assets/.eslintrc b/website/assets/.eslintrc
index 4f5f711f67..13d0ae5122 100644
--- a/website/assets/.eslintrc
+++ b/website/assets/.eslintrc
@@ -49,7 +49,6 @@
"docsearch": true,
"Chart": true,
"gtag": true,
- "analytics": true,
"ace": true,
// ...etc.
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/website/assets/js/pages/contact.page.js b/website/assets/js/pages/contact.page.js
index 8dce8734df..9c8c81b4b8 100644
--- a/website/assets/js/pages/contact.page.js
+++ b/website/assets/js/pages/contact.page.js
@@ -91,9 +91,6 @@ parasails.registerPage('contact', {
if(typeof window.lintrk !== 'undefined') {
window.lintrk('track', { conversion_id: 18587089 });// eslint-disable-line camelcase
}
- if(typeof analytics !== 'undefined'){
- analytics.track('fleet_website__contact_forms');
- }
// Show the success message.
this.cloudSuccess = true;
@@ -106,9 +103,6 @@ parasails.registerPage('contact', {
if(typeof window.lintrk !== 'undefined') {
window.lintrk('track', { conversion_id: 18587089 });// eslint-disable-line camelcase
}
- if(typeof analytics !== 'undefined'){
- analytics.track('fleet_website__contact_forms');
- }
let eventUrl = await Cloud.deliverTalkToUsFormSubmission.with(argins);
this.goto(eventUrl);
diff --git a/website/assets/js/pages/customers/new-license.page.js b/website/assets/js/pages/customers/new-license.page.js
index e492f4d64b..5f85a570f5 100644
--- a/website/assets/js/pages/customers/new-license.page.js
+++ b/website/assets/js/pages/customers/new-license.page.js
@@ -44,28 +44,6 @@ parasails.registerPage('new-license', {
// ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝
beforeMount: function() {
if(window.location.hash) {
- if(window.analytics !== undefined) {
- if(window.location.hash === '#signup') {
- analytics.identify(this.me.id, {
- email: this.me.emailAddress,
- firstName: this.me.firstName,
- lastName: this.me.lastName,
- company: this.me.organization,
- primaryBuyingSituation: this.me.primaryBuyingSituation,
- psychologicalStage: this.me.psychologicalStage,
- });
- analytics.track('fleet_website__sign_up');
- } else if(window.location.hash === '#login') {
- analytics.identify(this.me.id, {
- email: this.me.emailAddress,
- firstName: this.me.firstName,
- lastName: this.me.lastName,
- company: this.me.organization,
- primaryBuyingSituation: this.me.primaryBuyingSituation,
- psychologicalStage: this.me.psychologicalStage,
- });
- }
- }
window.location.hash = '';
}
},
diff --git a/website/assets/js/pages/device-management.page.js b/website/assets/js/pages/device-management.page.js
index a7947621f6..d873a57b6b 100644
--- a/website/assets/js/pages/device-management.page.js
+++ b/website/assets/js/pages/device-management.page.js
@@ -57,9 +57,6 @@ parasails.registerPage('device-management-page', {
if(window.lintrk !== undefined) {
window.lintrk('track', { conversion_id: 18587105 });// eslint-disable-line camelcase
}
- if(window.analytics !== undefined) {
- analytics.track('fleet_website__swag_request');
- }
this.goto('https://kqphpqst851.typeform.com/to/ZfA3sOu0#from_page=device-managment');
},
}
diff --git a/website/assets/js/pages/docs/basic-documentation.page.js b/website/assets/js/pages/docs/basic-documentation.page.js
index 68d8705a7f..ed36bd9739 100644
--- a/website/assets/js/pages/docs/basic-documentation.page.js
+++ b/website/assets/js/pages/docs/basic-documentation.page.js
@@ -204,9 +204,6 @@ parasails.registerPage('basic-documentation', {
if(window.lintrk !== undefined) {
window.lintrk('track', { conversion_id: 18587105 });// eslint-disable-line camelcase
}
- if(window.analytics !== undefined) {
- analytics.track('fleet_website__swag_request');
- }
this.goto('https://kqphpqst851.typeform.com/to/ZfA3sOu0#from_page=docs');
},
diff --git a/website/assets/js/pages/entrance/login.page.js b/website/assets/js/pages/entrance/login.page.js
index 5c161b7ac1..185e7ba1c8 100644
--- a/website/assets/js/pages/entrance/login.page.js
+++ b/website/assets/js/pages/entrance/login.page.js
@@ -42,7 +42,7 @@ parasails.registerPage('login', {
// If we're redirecting this user to the license dispenser after they log in, modify the link to the /register page and the pageToRedirectToAfterLogin.
if(window.location.hash === '#purchaseLicense'){
this.registerSlug = '/register#purchaseLicense';
- this.pageToRedirectToAfterLogin = '/new-license#login';
+ this.pageToRedirectToAfterLogin = '/new-license';
window.location.hash = '';
// If we're redirecting this user to the contact form after they log in, modify the link to the /register page and the pageToRedirectToAfterLogin.
} else if(window.location.hash === '#contact'){
diff --git a/website/assets/js/pages/entrance/signup.page.js b/website/assets/js/pages/entrance/signup.page.js
index 57debf9278..cbcea25379 100644
--- a/website/assets/js/pages/entrance/signup.page.js
+++ b/website/assets/js/pages/entrance/signup.page.js
@@ -39,7 +39,7 @@ parasails.registerPage('signup', {
if(window.location.hash === '#purchaseLicense'){
this.loginSlug = '/login#purchaseLicense';
- this.pageToRedirectToAfterRegistration = '/new-license#signup';
+ this.pageToRedirectToAfterRegistration = '/new-license';
window.location.hash = '';
} else if(window.location.hash === '#tryfleet') {
this.loginSlug = '/login#tryfleet';
@@ -72,7 +72,7 @@ parasails.registerPage('signup', {
},
submittedSignUpForm: async function() {// When the server says everything worked…
- // Track a "key event" in Google Analytics. (? but don't we do that when we call analytics.track() [segment] later on in start.page.js? TODO: eric help please – I suspect this one is either duplicate OR it's actually writing to Google Ads, and not to Google Analytics. I'm pretty sure segment's .track() is what writes to google analytics.)
+ // Track a "key event" in Google Analytics.
// > Naming convention: (like sails config)
// > "Website - Sign up" becomes "fleet_website__sign_up" (double-underscore representing hierarchy)
if(window.gtag !== undefined){
diff --git a/website/assets/js/pages/start.page.js b/website/assets/js/pages/start.page.js
index 00a41e64d0..d083b829c0 100644
--- a/website/assets/js/pages/start.page.js
+++ b/website/assets/js/pages/start.page.js
@@ -97,28 +97,6 @@ parasails.registerPage('start', {
this.psychologicalStage = this.me.psychologicalStage;
}
if(window.location.hash) {
- if(window.analytics !== undefined) {
- if(window.location.hash === '#signup') {
- analytics.identify(this.me.id, {
- email: this.me.emailAddress,
- firstName: this.me.firstName,
- lastName: this.me.lastName,
- company: this.me.organization,
- primaryBuyingSituation: this.me.primaryBuyingSituation,
- psychologicalStage: this.me.psychologicalStage,
- });
- analytics.track('fleet_website__sign_up');
- } else if(window.location.hash === '#login') {
- analytics.identify(this.me.id, {
- email: this.me.emailAddress,
- firstName: this.me.firstName,
- lastName: this.me.lastName,
- company: this.me.organization,
- primaryBuyingSituation: this.me.primaryBuyingSituation,
- psychologicalStage: this.me.psychologicalStage,
- });
- }
- }
window.location.hash = '';
}
},
@@ -141,16 +119,6 @@ parasails.registerPage('start', {
this.previouslyAnsweredQuestions[this.currentStep] = questionanireProgress.getStartedProgress[this.currentStep];
this.psychologicalStage = questionanireProgress.psychologicalStage;
this.primaryBuyingSituation = questionanireProgress.primaryBuyingSituation;
- if(typeof analytics !== 'undefined') {
- analytics.identify(this.me.id, {
- email: this.me.emailAddress,
- firstName: this.me.firstName,
- lastName: this.me.lastName,
- company: this.me.organization,
- primaryBuyingSituation: this.primaryBuyingSituation,
- psychologicalStage: this.psychologicalStage,
- });
- }
if(_.startsWith(nextStep, '/')){
this.goto(nextStep);
} else {
diff --git a/website/views/layouts/layout.ejs b/website/views/layouts/layout.ejs
index bf6cbab503..d83978f00c 100644
--- a/website/views/layouts/layout.ejs
+++ b/website/views/layouts/layout.ejs
@@ -65,13 +65,6 @@
- <%/* Segment */%>
-
<%/* LinkedIn insight tag*/%>