As from here and here, I was under the impression that bots don't set referer url.
But i just discovered otherwise, unless the situations are different. We have this javascript call:
<script>aCallToToWebApiEndAndUpdateDom(params)</script>
and from the api end, we create some user session to log views, and along we also log the userAgent
and urlReferrer
. oh boy, i just found a record with the following:
url referer: the actual page visited
user agent : Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
Am i missing one or two points? Is this the normal behavior? and if I want to log only human visits, it is the case of detecting them bots manually instead of checking for empty referer.