Google Analytics is one of the best ways to track traffic sources, user behaviour, etc., but many of you don't add the Google Analytics script to avoid a speed drop on the page. If you are using Lantro UI v1.7 then you don't need to worry about it.
In this article, we will guide you through adding the Google Analytics script to the Lantro UI v1.7 Blogger template. Without further ado, let's proceed.
How To Add Google Analytics Without Affecting Page Speed
Lantro UI v1.7 include lazy.js by www.fineshopdesign.com which lazy-loads the first load to newer visitors then it stores it in local storage next time they visit from the same device it will load normally. You can simply add Google Analytics without even editing HTML.
- Go to your Blogger dashboard
- Click Settings option from the sidebar
- Click Google Analytics Measurement ID
- Paste your measurement Id there which you get from Google Analytics script, the ID look something like this:
G-XXXXXXXXXX - Click Save
Now you can use Google Analytics in your website without effecting your website speed.