3

I seen many sites which are refreshing their pages after a fixed interval. Sometimes it is 1-2 mins only.

If i refresh a page after every 5 mins. It'll helpful to notify user with updated contents. Please tell me

  1. should i use Ajax for the same instead of reloading the complete page?
  2. Would it affect google analytics js script? Means, whether the counter for visits will be increasing?
  3. Would it affect adsense?

2 Answers 2

6

I hate websites which do this. I like to be in control of my browser, automatically refreshing the page without valid reason/warning* is a sure fire way for me to leave a website and never come back.

*There are times when refreshing is appropriate - the bbc sports website during sporting events (live football (soccer) matches, cricket, golf etc) has a smart piece of ajax which pulls the latest update in and moves the content further down the page - note the whole screen doesn't refresh. It's unobtrusive and there is a small warning stating that this happens.

1

Automatic refresh is fine if the content is something that is constantly changing and the users would expect and want the most recent content. ESPN.com uses this to update the pages where they report scores. In that case the reload the entire page. NFL.com only updates scores that change instead of reloading the whole page.

How you do it depends on your goals and your users' expectations. Using Ajax is a good idea as it is fast and doesn't affect page statistics like Google Analytics. But refreshing the page may be required if you want to count every page load or do other more complex things that may be too much for Ajax (or just simpler without it).

2
  • 1
    what is the effect on hits counter and adsense, if i dont use ajax based loading Oct 14, 2010 at 2:47
  • Your hits counter will reflect another page view and you will get another impression for your adsense ads.
    – John Conde
    Oct 14, 2010 at 3:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.