NextJS | Plausible.io Analytics integration | Component

PHOTO EMBED

Sun Jun 19 2022 13:38:01 GMT+0000 (Coordinated Universal Time)

Saved by @DimitarStoev #nextjs #javascript #plausible #analytics

import PlausibleProvider from "next-plausible";

function MyApp({ Component, pageProps }) {
  return 
  	<PlausibleProvider domain="<Your domain>">
  		<Component {...pageProps} />
  	</PlausibleProvider>
}

export default MyApp
content_copyCOPY

Integrate Plausible | NextJS through a component