aspose file tools*
The moose likes JSP and the fly likes no of counts of user who had entere the website through google Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "no of counts of user who had entere the website through google" Watch "no of counts of user who had entere the website through google" New topic
Author

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

Dhruvaa Nair
Greenhorn

Joined: Jan 26, 2007
Posts: 1
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

Joined: Feb 24, 2006
Posts: 6662
    
    5

Use the referer HTTP header


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
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.)


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: no of counts of user who had entere the website through google