Google Adsense Question #32323
Replies: 3 comments 5 replies
-
same issue here getting adsbygoogle.js?client=ca-pub-XXXXXXXXXXXXXXXX AdSense head tag doesn't support data-nscript attribute. |
Beta Was this translation helpful? Give feedback.
-
@JamesSingleton was this issue ever resolved? I'm currently having the same problem. |
Beta Was this translation helpful? Give feedback.
-
🆙 |
Beta Was this translation helpful? Give feedback.
-
So I have looked through the one or two questions already here about Google AdSense but nothing seems "definitive" in my opinion. Some same you should add this script to the
_document.tsx
And then put the
.push({})
in the Ad Component you make like:But then there is the suggestion of using
next/script
and adding both of those to the_app.tsx
file:Google says that
pagead2
script needs to be in the<head />
so my assumption is to add it in the_document.tsx
... But I am unsure about the other part.Beta Was this translation helpful? Give feedback.
All reactions