diff options
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> |