How To Add Google Analytics Lazy Loading Blogger 2021 - TechyWebTech -->

How To Add Google Analytics Lazy Loading Blogger 2021

Also Read

You want to add Google Analytics Lazy Loading to your Blogger? 


The first impression of the increasing user is a website speed, as we all know. It is important to understand that when it comes to user experience, you won't have a second chance in life. The slow speed of the website is one of the most uncomfortable for people visiting the blog.
How To Add Google Analytics Lazy Loading Blogger 2021
Google now makes the blog load speed an important search results factor, so we should optimize the blog load. Here you will see why your blog is being loaded slowly by Google Page-speed Insights.

Google Analytics is one of the tools for blog statistics with SEO elements, so we should keep it on our blog, use Lazy Load Script to get over the problem of the loading of Google analyses.

Google Analytics is the most common website-based javascript code, which may cause the webpage to be blocked by loading.

What is Lazy-Loading Google Analytics ? 

From a technical point of view, Lazy loading works better for JavaScript that monitors your visitors' current view and only loads the visible images and script when needed.
Lazy loading only occurs if many visitors reach or scroll down the page. Don't have to be loaded if you don't access the pictures.

Besides, the website loads for lazy loading very quickly and gives users satisfaction simultaneously. This type of script is helpful to directly improve the loading speed of the website, and makes it more possible for users to stay on that website, thereby increasing the conversion rate.

Thus, you can also improve the performance of this Google Analytics Lazy Load Script by temporarily delaying loading of CSS, JavaScript and Image files.

The way Google Analytics works with the load script consists in delaying the loading of Google Analytics' Javascript temporarily and getting back to work as you scroll across the web.Lazy Load usually works to delay the loading of certain items until scrolling is done.

Are Google analytics Impact on site Loading speed?

You know, by putting the analysis code in Footer instead of header, you can improve load pages 100 milliseconds quicker. It can solve Render-blocking PageSpeed Javascript and content errors that are above-the-fold.

Google Analytics slow down the loading time of your blog as it runs after installing Google Analytics Javascript code on blogger websites. A total of 3 HTTP requests were added to Google Analytics, taking from 100 to 500 milliseconds.

The PageSpeed Rendering Javascript and higher content can also be solved based on errors. This may be of assistance. However, by downloading Google's analytics code on your blogger website you can use it to improve the page speed.

Benefits of Installing Lazy-Loading Google Analytics Script :

  • The advantage of Google Analytics Lazy Load Scripts is that Google Analytics load after content loaded. 
  • An additional advantage is that PageSpeed, GTMetrix, and Web.dev score will improve.
  • Visitors will surely be happier if they get much faster than other Internet sites on your website. 

How To Install Lazy loaded Google Analytics code in Blogger?

It is very easy, the script below can be use, to install Google Analytics Lazy Load Script. And you must remember that this script is use for who already install Google Analytics to blogger blog.

Before Lazyload Google Analytics Code :
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-7QM8RJTJJ9"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-7QM8RJTJJ9');
</script>
  • Note Down The google Analytics code that you get from analytics
  • Remove The these line code from Analytics Code.
  • <script async="" src="https://www.googletagmanager.com/gtag/js?id=G-7QM8RJTJJ9"></script>
  • And Paste These Code.
    <script type="text/javascript">//<![CDATA[ var lazyanalisis=!1;window.addEventListener("scroll",function(){(0!=document.documentElement.scrollTop&&!1===lazyanalisis||0!=document.body.scrollTop&&!1===lazyanalisis)&&(!function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="<b>https://www.googletagmanager.com/gtag/js?id=G-7QM8RJTJJ9</b>";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}(),lazyanalisis=!0)},!0); //]]></script>
  • Change The Bold Link From Real Google Analytics code.
  • So, After all it your New Code Will Look Like.
    <script type="text/javascript">//<![CDATA[ var lazyanalisis=!1;window.addEventListener("scroll",function(){(0!=document.documentElement.scrollTop&&!1===lazyanalisis||0!=document.body.scrollTop&&!1===lazyanalisis)&&(!function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="<b>https://www.googletagmanager.com/gtag/js?id=G-7QM8RJTJJ9</b>";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}(),lazyanalisis=!0)},!0); //]]></script> <script>   window.dataLayer = window.dataLayer || [];   function gtag(){dataLayer.push(arguments);}   gtag('js', new Date());   gtag('config', 'G-7QM8RJTJJ9'); </script>
  • Login to Blogger.
  • Go to theme section. 

  • Click to Edit HTML.

  • Paste The Code above </body> and save the theme.

Once your template saved, you have successfully added Google Analytics code to your blogger website. Check now whether or not your analytics works correctly.

Also check after installing this code Your your website loading speed improve or not .


Disadvantages Of Google Analytics Lazy-loading

Some time Google analytics will show you wrong analytics Statistics if user exit before loading script properly. 

It will show you high bounce rate when script only loading but can't able to count the spend time on site.

Conclusion :

I hope this post will help you to understand how to install Google analytics lazy Load to Blogger. If you have any queries and Questions Related to this article feel free to comment Below Comment Box.

Keep In touch for more Blogger Tricks.