Implementation of the Facebook Pixel reports an error in the console #490
Unanswered
cristiantariga
asked this question in
Q&A
Replies: 1 comment
-
Hi, let's figure out the problem. text me on discord please. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello community
I was implementing Facebook Pixel in NextJs using PartyTown, I used both the NextJs documentation and the Facebook Pixel documentation, but I'm having problems.
Describing my implementation (using NextJS):
partytown copylib public/~partytown
In the file _document.tsx, PartyTown component has been added (inside Head tag):
I also added the Facebook Pixel script, using the NextJS Script tag:
In the above code, I took care in the following points:
apparently partytown starts correctly:
Created top window 1 environment
Initialized top window 1 environment
The problem is that it triggers the following error and the Facebook Pixel is not started:
The script works if I don't use PartyTown.
Beta Was this translation helpful? Give feedback.
All reactions