mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Add GTM (#9822)
Adding Google Tag Manager code snippet. Google Tag Manager changes will be reviewed by @eashaw before publishing to the website. Please feel free to push these changes once we've planned to properly incorporate GTM(Google Tag Manager) and set up a consensus for events, analytics, and review. We can keep the old analytics custom events (Global site tag (gtag.js) snippet) as they're important with SalesForce lead sources. We will need to edit these going forward, but incorporating GTM should make that process much easier. Once we've transitioned fully to GTM, we can remove the gtag.js snippet as it could live inside Google Tag Manager. # Checklist for submitter If some of the following don't apply, delete the relevant line. - [ ] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [ ] Documented any API changes (docs/Using-Fleet/REST-API.md or docs/Contributing/API-for-contributors.md) - [ ] Documented any permissions changes - [ ] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for new osquery data ingestion features. - [ ] Added/updated tests - [ ] Manual QA for all new/changed functionality - For Orbit and Fleet Desktop changes: - [ ] Manual QA must be performed in the three main OSs, macOS, Windows and Linux. - [ ] Auto-update manual QA, from released version of component to new version (see [tools/tuf/test](../tools/tuf/test/README.md)). --------- Co-authored-by: Eric <eashaw@sailsjs.com>
This commit is contained in:
parent
8daead3ef5
commit
241982ac80
4 changed files with 60 additions and 0 deletions
15
website/views/layouts/layout-customer.ejs
vendored
15
website/views/layouts/layout-customer.ejs
vendored
|
|
@ -49,6 +49,15 @@
|
|||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JC3DRNY1GV"></script>
|
||||
<script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JC3DRNY1GV');</script>
|
||||
<!-- Google Tag Manager -->
|
||||
<script>
|
||||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-TSBSPZK');
|
||||
</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
<%/* Meta pixel code */%>
|
||||
<script>
|
||||
!function(f,b,e,v,n,t,s)
|
||||
|
|
@ -98,6 +107,12 @@
|
|||
<!--STYLES END-->
|
||||
</head>
|
||||
<body>
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript>
|
||||
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TSBSPZK"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe>
|
||||
</noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
<div style="padding-bottom: 60px; background-color: #F9FAFC;" purpose="page-wrap">
|
||||
|
||||
<div class="header" purpose="header-container">
|
||||
|
|
|
|||
15
website/views/layouts/layout-landing.ejs
vendored
15
website/views/layouts/layout-landing.ejs
vendored
|
|
@ -49,6 +49,15 @@
|
|||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JC3DRNY1GV"></script>
|
||||
<script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JC3DRNY1GV');</script>
|
||||
<!-- Google Tag Manager -->
|
||||
<script>
|
||||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-TSBSPZK');
|
||||
</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
<%/* Meta pixel code */%>
|
||||
<script>
|
||||
!function(f,b,e,v,n,t,s)
|
||||
|
|
@ -99,6 +108,12 @@
|
|||
<!--STYLES END-->
|
||||
</head>
|
||||
<body>
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript>
|
||||
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TSBSPZK"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe>
|
||||
</noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
<div style="padding-bottom: 60px; background-color: #FFFFFF;" purpose="page-wrap">
|
||||
<div purpose="header-container" class="header">
|
||||
<div purpose="page-header" class="container-fluid d-flex align-items-center justify-content-between pt-3 pb-3 px-3 px-md-4">
|
||||
|
|
|
|||
15
website/views/layouts/layout-sandbox.ejs
vendored
15
website/views/layouts/layout-sandbox.ejs
vendored
|
|
@ -50,6 +50,15 @@
|
|||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JC3DRNY1GV"></script>
|
||||
<script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JC3DRNY1GV');</script>
|
||||
<!-- Google Tag Manager -->
|
||||
<script>
|
||||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-TSBSPZK');
|
||||
</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
<%/* Meta pixel code */%>
|
||||
<script>
|
||||
!function(f,b,e,v,n,t,s)
|
||||
|
|
@ -99,6 +108,12 @@
|
|||
<!--STYLES END-->
|
||||
</head>
|
||||
<body>
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript>
|
||||
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TSBSPZK"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe>
|
||||
</noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
<div style="padding-bottom: 60px; background-color: #FFF;" purpose="page-wrap">
|
||||
<div class="header" purpose="header-container">
|
||||
<%// Call to action ribbon above page header %>
|
||||
|
|
|
|||
15
website/views/layouts/layout.ejs
vendored
15
website/views/layouts/layout.ejs
vendored
|
|
@ -52,6 +52,15 @@
|
|||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JC3DRNY1GV"></script>
|
||||
<script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JC3DRNY1GV');
|
||||
</script>
|
||||
<!-- Google Tag Manager -->
|
||||
<script>
|
||||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-TSBSPZK');
|
||||
</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
<%/* Meta pixel code */%>
|
||||
<script>
|
||||
!function(f,b,e,v,n,t,s)
|
||||
|
|
@ -117,6 +126,12 @@
|
|||
<!--STYLES END-->
|
||||
</head>
|
||||
<body>
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript>
|
||||
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TSBSPZK"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe>
|
||||
</noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
<div purpose="page-wrap">
|
||||
<div class="header" purpose="header-container">
|
||||
<%// Call to action ribbon above page header %>
|
||||
|
|
|
|||
Loading…
Reference in a new issue