diff --git a/src/components/GoogleAnalytics.astro b/src/components/GoogleAnalytics.astro index 5cac619..92e1084 100644 --- a/src/components/GoogleAnalytics.astro +++ b/src/components/GoogleAnalytics.astro @@ -1,23 +1,25 @@ --- -type Props = { measurementId: string } -const props = Astro.props as Props -const measurementId = props.measurementId +type Props = { measurementId: string }; +const props = Astro.props as Props; +const measurementId = props.measurementId; --- + + type="text/partytown" + src={`https://www.googletagmanager.com/gtag/js?id=${measurementId}`} +> diff --git a/src/components/Posts.tsx b/src/components/Posts.tsx index 4194dfa..39343cc 100644 --- a/src/components/Posts.tsx +++ b/src/components/Posts.tsx @@ -1,29 +1,29 @@ import type { CollectionEntry } from "astro:content"; type Props = { - posts: CollectionEntry<"blog">[]; + posts: CollectionEntry<"blog">[]; }; export default function Posts({ posts }: Props) { - return ( -