I added config Google Adsense to my nuxt.config.js file:
head: {
...
script: [
{
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js',
'data-ad-client': process.env.VUE_APP_GA_AD || '',
async: true,
},
],
},
I have an error:
adsbygoogle.push() error: Only one AdSense head tag supported per page. The second tag is ignored.
and warning:
AdSense head tag doesn't support data-n-head attribute.
In the source of the page, I can see the code added to the head tag:
<head>
...
<script data-n-head="ssr" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" data-ad-client="ca-pub-MY_NUMBER" async>
...
</head>
How I can resolve it ?