Script Validation Issue - next.js
CompletedHello,
I’m planning to apply to Journey by Mediavine, and I wanted to ask if our site must be built on WordPress in order to join the platform, or if other platforms are also supported. Our site is currently built on Next.js. We have added the Grow script and can see it reflected in the HTML source code of the site. However, Journey does not recognize that the script has been added to the site when we attempt to validate.Thank you in advance for your help!
Best regards,
Veronica
-
Official comment
Hi Veronica Lobanov ! While we work with some next.js/single page application sites that were able to successfully implement the Grow script and hopefully they can chime in here, we don't have an official guide on how to add the Grow script on next.js sites since sites tend to load resources differently and it depends on how scripts are being executed/hydrated.
It's possible you could use the afterInteractive strategy outlined here, but otherwise we recommend talking to a developer or asking in the next.js forum on github.
Journey is Self Supported
Please sign in to leave a comment.
Comments
1 comment