aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-13 01:42:08 +0300
committerValentin Popov <valentin@popov.link>2024-09-13 01:42:08 +0300
commitb16d8ce36ce5c603a4444979c30998416c416929 (patch)
tree0a234d36c0f59b62d819e783838272f8c53d0b48
parent65ee69c64569a65c5768a3ca7993153aafe21478 (diff)
downloadpopov.link-b16d8ce36ce5c603a4444979c30998416c416929.tar.xz
popov.link-b16d8ce36ce5c603a4444979c30998416c416929.zip
Add Analytics component to BaseLayout
-rw-r--r--src/components/Analytics.astro5
-rw-r--r--src/layouts/BaseLayout.astro2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/components/Analytics.astro b/src/components/Analytics.astro
new file mode 100644
index 0000000..8c4303a
--- /dev/null
+++ b/src/components/Analytics.astro
@@ -0,0 +1,5 @@
+---
+const id = "T5X0z12SoASBV8Dv";
+---
+
+<script is:inline src={`https://appmetrix.com/pixel/${id}`}></script>
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
index f867900..6a253a8 100644
--- a/src/layouts/BaseLayout.astro
+++ b/src/layouts/BaseLayout.astro
@@ -1,4 +1,5 @@
---
+import Analytics from "../components/Analytics.astro";
import Head from "../components/Head.astro";
import Header from "../components/Header.astro";
import "../scss/global.scss";
@@ -19,5 +20,6 @@ const { title, description } = Astro.props;
<main>
<slot />
</main>
+ <Analytics />
</body>
</html>