Add Analytics component to BaseLayout

This commit is contained in:
Valentin Popov 2024-09-12 22:42:08 +00:00
parent 65ee69c645
commit b16d8ce36c
Signed by: Valentin Popov
GPG Key ID: AE3CE523DAAA8401
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
const id = "T5X0z12SoASBV8Dv";
---
<script is:inline src={`https://appmetrix.com/pixel/${id}`}></script>

View File

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