Add Google Analytics to webpages (#934)
## Description Add Google Analytics to docs and website This can only be tested in production for docs but it looks like the HTML does the right thing. ## Type of change - [x] 🌻 Feature ## Test Plan - [x] 💪 Manual
This commit is contained in:
parent
c145f711ee
commit
4d02650f99
@ -46,6 +46,9 @@ const config = {
|
|||||||
'https://github.com/alcionai/corso/tree/main/docs',
|
'https://github.com/alcionai/corso/tree/main/docs',
|
||||||
},
|
},
|
||||||
blog: false,
|
blog: false,
|
||||||
|
googleAnalytics: {
|
||||||
|
trackingID: 'G-4EXT1PY6KC',
|
||||||
|
},
|
||||||
theme: {
|
theme: {
|
||||||
customCss: require.resolve('./src/css/custom.scss'),
|
customCss: require.resolve('./src/css/custom.scss'),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -8,7 +8,17 @@
|
|||||||
<link href="assets/libs/tiny-slider/tiny-slider.css" rel="stylesheet">
|
<link href="assets/libs/tiny-slider/tiny-slider.css" rel="stylesheet">
|
||||||
@@include("partials/head-css.html")
|
@@include("partials/head-css.html")
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
<!-- Google tag (gtag.js) -->
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YXBFPQZ05N"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'G-YXBFPQZ05N');
|
||||||
|
</script>
|
||||||
|
|
||||||
@@include("partials/body.html")
|
@@include("partials/body.html")
|
||||||
<!-- Loader Start -->
|
<!-- Loader Start -->
|
||||||
<!-- <div id="preloader">
|
<!-- <div id="preloader">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user