Click here to Skip to main content
15,905,781 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,
Is is possible that when someone search form my website in a search engine like google etc and i can track on website that from which website user clicked for my website link?
Posted
Comments
shoaibhassan404 3-Jan-14 5:35am    
all i need is that search engine address from where my website has been searched

yeah, you can easily track things by using google analytics tool. you need to register your site with google analytics and they will provide you a small script of code which you need to add on every page. then you are done. next when you login to Google anylatics it will show you the Site report with lot of filter options.

Best of luck.
 
Share this answer
 
Comments
shoaibhassan404 3-Jan-14 6:55am    
is there any alternative to google analytics?? i need that tracking information on my website's page where the visitor have arrived
shoaibhassan404 6-Jan-14 1:00am    
Can anyone please provide me an alternative to google analytics? i need to get the visitors information like the last website from where user has been redirected to my website etc. all i need is a script that i can include in my website and get above mentioned information on my website. No matter whether this script is free or paid.
ravikhoda 6-Jan-14 4:16am    
Try below links it may give you some idea,

http://www.pcworld.com/article/2051368/4-simpler-alternatives-to-google-analytics.html

http://www.hongkiat.com/blog/google-analytics-alternatives/
well you can try and check history using Javascript.


You can get the previous page URL using
window.history.back

however this will only give you the link of the previous page. you can not get other details like key words or browser or any other information
 
Share this answer
 
Comments
shoaibhassan404 3-Jan-14 7:44am    
Other than is, is there any script that i can use in my webpage and get the required information about visitor and the search engine he used to search my website?
HttpRequest has a UrlReferrer Property[^] which tells you the previous request URL that linked to the current URL.

I guess this is what you are looking for.
 
Share this answer
 
Comments
shoaibhassan404 3-Jan-14 7:53am    
But UrlRefferer Property is null in case of redirect, it only works with hyperlinks, am i right?
Ankur\m/ 3-Jan-14 8:11am    
Yes, you are right. If you are using Response.Redirect, UrlReferrer property will be null because a 302 status is returned to the browser and then the browser does a new get request to the redirected url.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900