diff options
Diffstat (limited to 'www/src')
-rw-r--r-- | www/src/pages/blog/introducing-astro.astro | 10 | ||||
-rw-r--r-- | www/src/pages/index.astro | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/www/src/pages/blog/introducing-astro.astro b/www/src/pages/blog/introducing-astro.astro index 2e768c780..bc87a41bc 100644 --- a/www/src/pages/blog/introducing-astro.astro +++ b/www/src/pages/blog/introducing-astro.astro @@ -115,6 +115,16 @@ npm start </Note> </Markdown> </BlogPost> + + <!-- Global site tag (gtag.js) - Google Analytics --> + <script async src="https://www.googletagmanager.com/gtag/js?id=G-TEL60V1WM9"></script> + <script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', 'G-TEL60V1WM9'); + </script> </body> </html> diff --git a/www/src/pages/index.astro b/www/src/pages/index.astro index eaa88702f..e2d07691e 100644 --- a/www/src/pages/index.astro +++ b/www/src/pages/index.astro @@ -78,5 +78,15 @@ let permalink = 'https://astro.build/'; <script> console.log('%cGet early Astro access 👉 https://astro.build/chat', "color:#17c083; font-size: 1.2em; padding: 1em;"); </script> + + <!-- Global site tag (gtag.js) - Google Analytics --> + <script async src="https://www.googletagmanager.com/gtag/js?id=G-TEL60V1WM9"></script> + <script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', 'G-TEL60V1WM9'); + </script> </body> </html> |