Google Analytics is known as one of the best website traffic tracking tool which is being used by almost all the webmasters among the world and as well as blogger.com users are also using it even Blogger provides its own system to track the traffic. The reason, it the best tool which gives the accurate and correct data always. Blogger and Analytics, these both products are owned by Google and Google has made them perfect. Let's come to our main topic. Today, I'm going to share a case study on why Google Analytics doesn't work in blogger with tracking ID and how to get it working?
Analytics Not Working In Blogger With Tracking ID
If you remember, I had shared a tutorial on how to install Google Analytics in Blogger and there was two methods for it. First one was inserting the Tracking ID in Blogger settings while other was to insert the tracking code manually. Here I'm talking the first method which doesn't work sometimes. Many readers and friends requested me that why the first easiest method is not working so I did a research and found the solution which is going to be shared here by me.
I noticed one point that most of blogs were having custom developed blogger templates which is the main point. I created a testing blog, installed analytics on it, used default blogger template and sent some fake traffic through bots. Here I found that installing analytics with tracking ID on default templates works properly while it doesn't work in custom templates which are developed by common people. After that, I started reading the coding of default blogger templates and found a point which calls the analytics. And that point or coding line was not available in many custom templates. Just simply, I copied that coding line which calls the analytics and inserted it in custom templates and mission was successful. Means, It worked!
Why To Use Tracking ID Method Instead of Tracking Code?
The question might come in your mind that why we should use tracking ID method instead of tracking code and why it is better than tracking code method. Then let me answer it. The tracking code which we inset manually is written in JavaScript and it contains external files. It means, that is JavaScript code and JavaScript is mostly avoided by developers to use because it makes the site load lazy. And that code seems short, but it comes with such links which calls the external long JavaScript files which are the main files. So, for the sake of improving the loading speed specially, we should use the tracking ID method and avoid using tracking code method. Tracking ID requires only a single line which is written in XML and it doesn't loads, just blogger reads it and sends the data to Analytics. That's it.
How To Get Analytics Working In Blogger With Tracking ID?
There is nothing any long process to get it working in blogger with custom blogger templates but we just need to insert the coding line in template which calls analytics and adding tracking ID in blogger settings. Here is the tutorial for it.
- Go To Blogger >> Template >> Edit HTML
- Search For </body>
- Above </body> Paste The Following Code.
<b:include data='blog' name='google-analytics'/>
- Click Save Template.
- Now Go To Blogger >> Settings >> Other
- Here In The Bottom, You Will See Google Analytics Section.
- Paste Your Analytics Tracking ID in Analytics Web Property ID Box.
- Click Save Changes at the top right corner.
- That's It.
Final Words
So, friends that was the case study on Why Google Analytics Doesn't Work In Blogger With Tracking ID and I hope my little research is going to be helpful for everyone who wants to reduce his/her blog's loading time and looking for this kind of solution. Keep in touch with us for and also subscribe us to receive creative tutorials daily and don't forget to share it with others. Take a lot of care and Happy Tracking!
0 comments:
Post a Comment