Scripts added in header section is not working

Posted in: Newspaper
Post count: 4

I have added google analytics and google adsense code in header section (header.php) and save it but they are not working. And I can’t see it using Cntrl + U. Now I have installed plugin for adding scripts to header. But why header.php file not working?

Post count: 27744

Hello,

Please delete the code from the header.php. The code must be added in the head tags, you can add the code in Theme Panel -> Analytics/Js Codes.

Thank you!

Post count: 4

I am having this same problem. I have followed your instructions to resolve the issue but I am still getting the same error as well.
After going through Theme Panel and pasting the code from Google Adsense into the Analytics section, it still says Couldn’t verify your site. I have also placed the ads.txt file into the root directory of the site.

Post count: 4

OK, so I was able to get my site verified. I removed the script file altogether from the header in wordpress settings and also in the Theme Panel>Analytics/Js Codes. I added the .txt file only and I was able to get the site veried in about 3 seconds. I hope this helps someone.

Post count: 27744

Hi,

I’m glad you resolved it.

Have a great day!

Post count: 4

Well, I thought it helped and when I go to the domain.com/ads.txt, I can see it but it is saying ads.txt not found on the Google Adsense page….

Post count: 4

I”m going to try this method instead and see if I get a different result. This has been going on now for three weeks.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.