diff --git a/website/config/routes.js b/website/config/routes.js index bdbaaeca34..eecdfb2359 100644 --- a/website/config/routes.js +++ b/website/config/routes.js @@ -525,7 +525,7 @@ module.exports.routes = { action: 'microsoft-proxy/view-remediate', locals: { showConfigurationProfileLayout: true, - disableAnalyticsScriptsAndIndexing: true, + disableChatbotAndIndexing: true, } }, @@ -533,7 +533,7 @@ module.exports.routes = { action: 'microsoft-proxy/view-turn-on-mdm', locals: { showConfigurationProfileLayout: true, - disableAnalyticsScriptsAndIndexing: true, + disableChatbotAndIndexing: true, } }, @@ -548,7 +548,7 @@ module.exports.routes = { action: 'view-okta-conditional-access-error', locals: { showConfigurationProfileLayout: true, - disableAnalyticsScriptsAndIndexing: true, + disableChatbotAndIndexing: true, } }, diff --git a/website/views/layouts/layout.ejs b/website/views/layouts/layout.ejs index c5bfd4330b..b396095f92 100644 --- a/website/views/layouts/layout.ejs +++ b/website/views/layouts/layout.ejs @@ -9,7 +9,7 @@ var hideFooterLinks;// Hides footer links, reduces the height of the footer to 60px; var showAdminLinks;// Shows links to admin pages to admin users. var showConfigurationProfileLayout; - var disableAnalyticsScriptsAndIndexing;// Disables analytics scripts and adds a noindex meta tag. Used on pages linked to from Fleet. + var disableChatbotAndIndexing;// Disables the chatbot and adds a noindex meta tag. Used on pages linked to from Fleet. // Applies personalization for who people come from ads, so that the website makes more sense for them: var primaryBuyingSituation; var defaultMetaDescription = 'Open-source '+(['it-major-mdm', 'it-gap-filler-mdm', 'it-misc'].includes(primaryBuyingSituation) ? 'IT' : ['security-misc','security-vm'].includes(primaryBuyingSituation) ? 'security' : 'IT and security')+' for teams with lots of '+(['it-major-mdm', 'it-gap-filler-mdm'].includes(primaryBuyingSituation) ? 'computers. (macOS, Windows, Linux, ChromeOS)' : 'workstations and servers. (Linux, macOS, Windows, cloud, data center, OT/ICS, Chrome)'); @@ -44,7 +44,7 @@ <% /* Certain scripts, normally analytics tools like Google Tag Manager and Google Analytics, should only be included in production: */ - if (sails.config.environment === 'production' && !disableAnalyticsScriptsAndIndexing) { %> + if (sails.config.environment === 'production') { %> <% /* Rollbar */%> <% /* Qualified */ %> - + <% if(!disableChatbotAndIndexing) {%> + + <% } else {%> + + <% } %> <% /* Snitcher */ %>