next-plausible
next-plausible copied to clipboard
PlausibleProvider with Next js 13.4.12
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.