next-plausible icon indicating copy to clipboard operation
next-plausible copied to clipboard

PlausibleProvider with Next js 13.4.12

Open 4lejandrito opened this issue 8 months ago • 2 comments

Discussed in https://github.com/4lejandrito/next-plausible/discussions/100

Originally posted by jamezening August 12, 2023 I am having difficulty getting PlausibleProvider to work with Next js 13.4.12. As shown in the documentation I have added the provider in

app/layout.tsx

    <html lang="en">
      <head>
        <PlausibleProvider domain={mydomain} trackLocalhost />
      </head>
      <body className={inter.className}>
        <Providers>
          <section className="flex justify-center">{children}</section>
        </Providers>
      </body>
    </html>

I am not getting any event from local host or when deployed.

Any tips would be appreciated.

4lejandrito avatar Oct 08 '23 15:10 4lejandrito