Halaman

How to Install the Correct Google Adsense Ad Code in Your Blog

How to Install the Correct Google Adsense Ad Code in Your Blog

TrickPk.com  - For those of you who used any Premium template just like fletro, Median UI and imagz etc, the ad code in the template cannot be installed arbitrarily. Because it will reduce the value of  Performance, Accessibility, Best Practice, and SEO  blogs on the website.

The template that I used previously is equipped with Lazy Load Adsense, so there is a special trick to make this code work optimally.

How to Install Google Ads Correctly

How to Install the Correct Google Adsense Ad Code Blogger

1. Open Adsense Dashboard

2. Press Ads

3. Select By ad unit

Press the < > icon in one of the existing ad units

4. Then you will find a code similar to this

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-12345678910112" crossorigin="anonymous"></script>
<!-- Ads --> <ins class="adsbygoogle"      style="display:block"      data-ad-client="ca-pub-12345678910112"      data-ad-slot="xxxxxxxxx"      data-ad-format="auto"      data-full-width-responsive="true"></ins> <script>      (adsbygoogle = window.adsbygoogle || []).push({}); </script>

5. Don't copy all the code, just copy the part that I marked in green, just copy that type ad code. Then Paste it into the Widget or into the Template directly according to the desired position.

6. While, the code that I marked in yellow, just copy that ad script code and use it in your template as above from <head>.

7. Save

Attention

The code I marked in yellow contains a JavaScript link. This code can affect the speed of the blog because it contains commands to call scripts from outside the template.

Google does not recommend that we use scripts from outside too much, because it causes server traffic to be busy, heavy, and slow.

Found this article helpful? Kindly comment below if you have any questions about this article.

Related Post

No comments