Closed AlessandroVol23 closed 1 year ago
Hi @AlessandroVol23! I don't think your script tag should affect next-plausible
at all. If you remove it, does it work?
I removed the script tag but it is still not visible.
The script tag with the tag data-domain
is missing -> https://serverlessq.com
Any idea what to change? I haven't deployed it with enabled={true}
but so far that works on all other pages which are also simply static next paegs
I've added it manually now with <Script
tags so that works for me
Hey @AlessandroVol23 I have no clue why it failed. I am sad you had to resort to a raw Script tag. If you ever try again with next-plausible
please come back to this issue and I'll try to find out the root cause.
For now I'll close this.
In case anyone has this issue. I was having the same problem and I was missing a Head tag on _document.tsx
import { Head } from "next/document";
After adding it it started working
I removed the script tag but it is still not visible. The script tag with the tag
data-domain
is missing -> https://serverlessq.comAny idea what to change? I haven't deployed it with
enabled={true}
but so far that works on all other pages which are also simply static next paegs
If anyone still has this issue, i had to add scriptProps={{ strategy: 'beforeInteractive' }}
to
[I am using NextJS 14 pages router]
Hi,
thanks for the lib 😊
I'm using it for various projects but it fails on one project where I also set a custom Script tag:
If I set the
enabled={true}
I see it on localhost. But once I deploy it I can't see it. Is the script tag maybe overriding it? Any idea what could cause this?Thanks 😊