Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no of counts of user who had entere the website through google

 
Dhruvaa Nair
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a web site. The use can enter the website through goggle Search. I need to track the no of counts of user who had entere the website through google.

Thanks,
Dhruvaa
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the referer HTTP header
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

You could check the "REFERER" HTTP header of the incoming request. It contains the URL of the page where the link was located, which would be something like "http://www.google.com/search?q=foobar...". It's not a reliable method, though, because the user/browser may choose not send this header (E.g., Firefox has setting to disable the sending of REFERER headers.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic