diff --git a/components/BlogList.js b/components/BlogList.js index f99a09dcd..78c26ad70 100644 --- a/components/BlogList.js +++ b/components/BlogList.js @@ -1,8 +1,10 @@ import Link from "next/link"; import { useRouter } from "next/router"; +import { usePlausible } from 'next-plausible' const BlogList = ({ posts }) => { const router = useRouter(); + const plausible = usePlausible(); const isPublicPost = (post) => !post.slug.startsWith("_"); const publicPosts = posts.filter(isPublicPost); @@ -18,12 +20,12 @@ const BlogList = ({ posts }) => { const randomUrl = `/posts/${randomPost?.slug}`; return (

- plausible("random_post_clicked")} > ✨ Random Post ✨ - +

); }; diff --git a/components/Meta.js b/components/Meta.js index d56539088..0f6b6b44b 100644 --- a/components/Meta.js +++ b/components/Meta.js @@ -1,5 +1,4 @@ import Head from "next/head"; -import Script from "next/script"; import { useEffect } from "react"; export default function Meta(props) { @@ -19,11 +18,6 @@ export default function Meta(props) { return ( <> - ; + return ( + + ; + + ); } export default MyApp;