Hi Developers, yesterday i was thinking something about a script. I am not a good developer so what i am sharing with you. Script is: Sites uptime monitor script. Can we develop a Uptime Monitor script using Google Analytics api to display just uptime stats for our site??? if yes then please share how! or Start discussion on it. may we get some thing special. I think all webmasters need this useful script. Hope all will help. Thanks, Iffi
You cannot do it using GoogleAnalytics alone. The best approach is to have separate server/hosting which will ping your main site every 5 minutes to and check if the response code is equal to 200. It's still not a perfect solution, because your monitoring site can be down so in fact you need two or more monitoring site, but still it's best in terms of accuracy/cost. You can also use some monitoring service, that will send you email or SMS when your site is down, can't remember any of them now, just Google "website uptime monitoring".
i know that. but why we can make our? analytics already have insert code to our sites. and they generate logs too. how we cant use it? have any one try?
Analytics code only executes when a visitor access your web page, but what if no one is visiting your site and your server is down? I don't think you can monitor the uptime of a site using analytics.
I can only join into this conversation and advice to use some kind of alternative Uptime Monitoring software like Nimsoft, for example. Analytics and, even, Webmaster Tools are great for seeing Traffic and problems with your side, but it comes to observing the uptime then you left to your own sources. The best thing to do is to cross reference data gathered from Webmaster / Analytics with data coming either from Nimsoft, Pingdom or any other good Uptime monitor.
most of the serious solutions for uptime statistics are on the OS level,the best one i know of is Cacti, you should take a look at it(cacti.net)