Tuesday, May 20, 2014

How to create Javascript date object without timezone hassle

Because a picture can say thousands words, here is a screenshot of Google Chrome Javascript console, where I executed the codes for creating date object without the time/hours being converted to other time/hours (following the browser's local time zone). In shot, timezone hassle.

Friday, May 16, 2014

How to fix "Don't track your own pageviews" problem

How to fix "Don't track your own pageviews" problem

Background problem

As a blogger who customize his Blogger blog with custom domain, I'm also facing problem with "Don't track your own pageviews" popup. When I clicked "Don't track your own pageviews" link as shown on picture on the left, I always got an alert box which said: There was an error while fetching stats. Please reload page. Then, I reload the page, try again, and get that alert box again.

Later, I tried to create a dummy blog, which is using regular subdomain under blogspot.com, and the problem is not there. That means, when you have blog on Blogger without any custom domain, you won't face this "Don't track your own pageviews" problem. However, for many bloggers who have bought their own domain and want to use it with their blog, removing the custom domain is not an option. As I have found the cause of this problem, I also have found the solution for this problem, without removing your custom domain on your blog. Here's the solution... (Click Read more link below.)