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

Inject script using `next/script` #40

Closed garritfra closed 2 years ago

garritfra commented 2 years ago

Starting with Next.js v11, Vercel recommends to inject scripts using next/script as opposed to using a <script /> tag inside of next/head. See deprecation warning at the bottom of the next/head docs.

If you agree, I'm happy to open a PR addressing this.

garritfra commented 2 years ago

Whoops, I just noticed there is already an open PR for this. Closing this. :)

4lejandrito commented 2 years ago

Thanks anyway @garritfra! I am waiting for nextjs to fix an issue until I can merge the pull request.