How to Lazyload Google analytics script in blogger and WordPress

One, first you enter the theme by going to your blogger dashboard and clicking on theme and then going to edit html. Two, remove the previous......

Dear friend, today Somadanmedia has brought for you how to Lazyload Google analytics script. All of us who work with websites have a vision towards the performance of the website and how the speed of the website is. And when I use Google Analytic script, the site speed decreases and the performance deteriorates.

How to Lazyload Google analytics script in blogger and WordPress

 So let's see how we can fix it with lazy loading and site speed.

What is Google Analytics Script?

 Google Analytic is a script of Google through which the complete visitor information of a website can be updated and how many users there are at the present time. So it is very important to use Google Analytics Script for a website.

Why is the Google Analytic script loading lazily?

 Google Analytics is a very important thing for a website but note that using this script reduces the speed of the website due to which the rank of the website decreases and the visitors decrease so to keep the speed of the website Google Analytic script has to be loaded lazily.

If the Google Analytics script is not loaded slowly, why does the site slow down?

 If the Google Analytics script is not lazy loading, then any script that Google Analytics contains takes a lot of time to load and all other scripts that are not scripts do not take much time to load. So since this java script takes long time to load and Google's Robert doesn't understand it easily, the website slows down.

How to use Lazyload Google analytics

 One, first you enter the theme by going to your blogger dashboard and clicking on theme and then going to edit html.

 Two, remove the previous Google Analytic script.

 Third, copy the codes from the box below and paste them into your notepad.

 
If you have problems copying, download it
Four, now replace it(G-0000000000) with your Analytic lD.
 Five, now paste this code before the </body> tag of your theme, save your finished theme and view the demo.

How to Lazyload Google Analytics Code in WordPress?

  One: Log in to your WordPress dashboard.
  Two: Use any cache a plugin example (WP Rocket)
  Three: Go to WP Rocket Settings > File Optimization > Delay Javascript Execution of Google Analytics
  Fure: Save the changes
Or in any other way paste the above codes before the footer or after the header then you will be done.

  If you don't have WP Rocket then you can follow blogger method and paste in head section with any plugin. Only then will your work be done.

Conclusion

 If you don't understand any of the options mentioned above, then do comment, above all, don't forget to comment how the nutrition felt. Join us in 
telegram group telegram channel DMCA

About the author

Somadanmedia
A trusted platform of Education-Culture & News and Islamic Matters And online trip's

إرسال تعليق