Google AdSense give me a script to added in the head tag
<script data-ad-client="ca-pub-XXXXXXXXXXXXXXX" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
my code:
<Helmet>
<script
data-ad-client="ca-pub-XXXXXXXXXXXXXXXX"
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"
></script>
</Helmet>
return me this error
AdSense head tag doesn't support data-react-helmet attribute. how can I fix that?
<script>
tag used to change AdSense ads behavior. So that "head tag doesn't support" message is just to help developers detect errors if they misspelled attribute names.