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
|
```json
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "astro dev .",
|
"start": "astro dev",
|
||||||
"build": "astro build ."
|
"build": "astro build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
"name": "www",
|
"name": "www",
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "astro dev .",
|
"start": "astro dev",
|
||||||
"build": "astro build ."
|
"build": "astro build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^0.12.10"
|
"astro": "^0.12.10"
|
||||||
|
|
|
@ -115,6 +115,16 @@ npm start
|
||||||
</Note>
|
</Note>
|
||||||
</Markdown>
|
</Markdown>
|
||||||
</BlogPost>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
|
@ -78,5 +78,15 @@ let permalink = 'https://astro.build/';
|
||||||
<script>
|
<script>
|
||||||
console.log('%cGet early Astro access 👉 https://astro.build/chat', "color:#17c083; font-size: 1.2em; padding: 1em;");
|
console.log('%cGet early Astro access 👉 https://astro.build/chat', "color:#17c083; font-size: 1.2em; padding: 1em;");
|
||||||
</script>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Reference in a new issue