4lejandrito / next-plausible

Simple integration for https://nextjs.org and https://plausible.io analytics
https://next-plausible.vercel.app
MIT License
603 stars 33 forks source link

Cannot customize <head> tag in app router method #131

Open Younghyo opened 1 month ago

Younghyo commented 1 month ago

In the readme page, it's saying

If are using the app directory include PlausibleProvider inside the root layout:

However, it's not allowed to customize inside of <head> tag in layout.tsx in next js 13 with app router concept. Is this only me suffering this issue?

tobiholic commented 1 week ago

Is there a solution to this already? I am experience the same issue.

tobiholic commented 1 week ago

Fixed it: Just use the PlausibleProvider as a wrapper for your body component, after it worked for me.