add anayltics script
This commit is contained in:
parent
bad8b32df7
commit
5973cc763d
4 changed files with 24 additions and 4 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue