Website: Update variable set in routes (#42196)
Changes: - Updated the website layout to only disable the qualified chatbot script on the /remediate, /turn-on-mdm, and /okta-conditional-access-error - Renamed the `disableAnalyticsScriptsAndIndexing` variable to `disableChatbotAndIndexing`
This commit is contained in:
Vendored
+3
-3
@@ -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,
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Vendored
+10
-6
@@ -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 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto+Mono:ital,wght@0,200;0,300;0,400;0,500;0,700;1,200;1,300;1,400;1,500;1,700&family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
|
||||
<% /* 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 */%>
|
||||
<script>
|
||||
var _rollbarConfig = {
|
||||
@@ -89,11 +89,15 @@
|
||||
<% /* Clay */ %>
|
||||
<script src="https://static.claydar.com/init.v1.js?id=cwiBCPLMlD"></script>
|
||||
<% /* Qualified */ %>
|
||||
<script>
|
||||
(function(w,q){w['QualifiedObject']=q;w[q]=w[q]||function(){
|
||||
(w[q].q=w[q].q||[]).push(arguments)};})(window,'qualified')
|
||||
</script>
|
||||
<% if(!disableChatbotAndIndexing) {%>
|
||||
<script>
|
||||
(function(w,q){w['QualifiedObject']=q;w[q]=w[q]||function(){
|
||||
(w[q].q=w[q].q||[]).push(arguments)};})(window,'qualified')
|
||||
</script>
|
||||
<script async src="https://js.qualified.com/qualified.js?token=kdbyrPDkGjPxVmAd"></script>
|
||||
<% } else {%>
|
||||
<meta name="robots" content="noindex">
|
||||
<% } %>
|
||||
<% /* Snitcher */ %>
|
||||
<script>
|
||||
!function(s,n,i,t,c,h){s.SnitchObject=i;s[i]||(s[i]=function(){
|
||||
|
||||
Reference in New Issue
Block a user