diff options
author | Valentin Popov <valentin@popov.link> | 2024-09-13 01:42:08 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-09-13 01:42:08 +0300 |
commit | b16d8ce36ce5c603a4444979c30998416c416929 (patch) | |
tree | 0a234d36c0f59b62d819e783838272f8c53d0b48 /src | |
parent | 65ee69c64569a65c5768a3ca7993153aafe21478 (diff) | |
download | popov.link-b16d8ce36ce5c603a4444979c30998416c416929.tar.xz popov.link-b16d8ce36ce5c603a4444979c30998416c416929.zip |
Add Analytics component to BaseLayout
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Analytics.astro | 5 | ||||
-rw-r--r-- | src/layouts/BaseLayout.astro | 2 |
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> |