1

i want to create additional page visit analytics (for a/b test) with js. but i need to exclude google bots.

is there any way to exlude bots like google bot in js without any captcha or form validation ?

mst
  • 466
  • 5
  • 17
  • 2
    Has been answered before: http://stackoverflow.com/questions/20084513/detect-search-crawlers-via-javascript – HaukurHaf Jun 16 '15 at 08:44

1 Answers1

0

How about the noindex-meta-tag?

In javascript you can check the navigator.userAgent if it matches with any of those.

Edit: I realize this might not be the answer you were looking for. Is that google analytics? How about goint to Admin > View > View Settings > Bot Filtering "Exclude all hits from known bots and spiders".

ippi
  • 9,857
  • 2
  • 39
  • 50