Don't track your own page views in Blogger

This post gives the technique to avoid counting of your own page views in Blogger. First login to your blog and then go to https://[yourblog].blogspot.in/b/statsCookieManage.


Then tick the check box 'Don't track my views for this blog'. Then go to Status -> Overview to check your page views.


But unfortunately blogger still tracking my pageviews. This issue can be resolved by a small technique. Go to https://[yourblog].blogspot.in/b/statsCookieManage. Then click F12. Then go to console in the newly opened window.


Then copy the below code and paste into the console.

function createCookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
}
createCookie("_ns", "2", 999);




Then click enter. Now this code will be executed. Thus tracking of my own page views issue is resolved for me.