the is_bot(request) function is not defined. everything else works perfectly.
Am Donnerstag, 26. April 2012 18:22:29 UTC+2 schrieb pbreit: > > One easy way is just to add a counter field and then +1 it each time it's > viewed. I do this: > > if not (item.seller==auth.user_id or is_bot(request)): > item.update_record(views=item.views+1, > modified_on=item.modified_on, modified_by=item.modified_by) > > I have 2 exceptions: bots like Google and if the author is viewing the > page (I don't count that). > > You could also just rely on Google Analytics and not have to do any > programming (other than inserting Google javascript into all your pages). >

