add anayltics script

This commit is contained in:
Fred K. Schott 2021-06-08 14:28:29 -07:00
parent bad8b32df7
commit 5973cc763d
4 changed files with 24 additions and 4 deletions

View file

@ -30,8 +30,8 @@ The default Astro project has the following `scripts` in the `/package.json` fil
```json
{
"scripts": {
"start": "astro dev .",
"build": "astro build ."
"start": "astro dev",
"build": "astro build"
}
}
```

View file

@ -2,8 +2,8 @@
"name": "www",
"version": "1.1.0",
"scripts": {
"start": "astro dev .",
"build": "astro build ."
"start": "astro dev",
"build": "astro build"
},
"devDependencies": {
"astro": "^0.12.10"

View file

@ -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>

View file

@ -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>