Add Analytics component to BaseLayout
This commit is contained in:
parent
65ee69c645
commit
b16d8ce36c
5
src/components/Analytics.astro
Normal file
5
src/components/Analytics.astro
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
const id = "T5X0z12SoASBV8Dv";
|
||||||
|
---
|
||||||
|
|
||||||
|
<script is:inline src={`https://appmetrix.com/pixel/${id}`}></script>
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
import Analytics from "../components/Analytics.astro";
|
||||||
import Head from "../components/Head.astro";
|
import Head from "../components/Head.astro";
|
||||||
import Header from "../components/Header.astro";
|
import Header from "../components/Header.astro";
|
||||||
import "../scss/global.scss";
|
import "../scss/global.scss";
|
||||||
@ -19,5 +20,6 @@ const { title, description } = Astro.props;
|
|||||||
<main>
|
<main>
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
</main>
|
||||||
|
<Analytics />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user