react-firebase-starter icon indicating copy to clipboard operation
react-firebase-starter copied to clipboard

Adding adsense and other scripts it makes things to load unnecessary and wrong

Open freereikicourse opened this issue 8 years ago • 1 comments

For example if I add adsense to the page:

<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-8900380089861989",
    enable_page_level_ads: true
  });
</script>

The problem is that the render of the page will load all the scripts that adsenses "wants" and then they will be injected in the rendered html page.

This is a disaster because now I have worthless js requests:

  • https://adservice.google.co.uk/adsid/integrator.js?domain=localhost
  • https://adservice.google.com/adsid/integrator.js?domain=localhost

Notice that the domain is different and also domain is localhost...

I also get this weird request:

  • https://pagead2.googlesyndication.com/pub-config/r20160913/ca-pub-8900380089861989.js

freereikicourse avatar Nov 19 '17 10:11 freereikicourse

Hi, did you solve this? I'm having the same problem on my site. I would like to remove these two lines through wordpress. Some help?

gerandd avatar Aug 07 '18 23:08 gerandd