Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Younghyo opened this issue Oct 3, 2024 · 4 comments
Closed

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

Younghyo opened this issue Oct 3, 2024 · 4 comments

Comments

@Younghyo
Copy link

Younghyo commented Oct 3, 2024

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
Copy link

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

@tobiholic
Copy link

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

@nyaray-bontouch
Copy link

It would be nice if this was documented, I was lucky to find this issue when setting up analytics in a project to evaluate Plausible.

4lejandrito added a commit that referenced this issue Jan 15, 2025
@4lejandrito
Copy link
Owner

4lejandrito commented Jan 15, 2025

@nyaray-bontouch see b6fb59c.

Thanks!

4lejandrito added a commit that referenced this issue Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants