Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am currently working on my own project, this is a simple web application integrated with a SMS Gateway!! now I what I want is -
1. I want to where my visitors are coming from? like I have a Facebook page for that site. I want to detect if any user is visiting my site from that Facebook page.

I know there are many services and third party tools to do that. But what I want to know is that if there is any method id PHP I can use or if there any method in PHP close to that or relevant.

Thank You in advance.
Posted
Comments
DaveAuld 22-Nov-11 9:00am    
If you are trying to understand your site usage, you are best to use the likes of Google Analytics..........

1 solution

Have a look at the document.refferer

http://www.w3schools.com/jsref/prop_doc_referrer.asp[^]

For example, if I code to may CodeProject profile, click my HomePage icon, this will load up my website in the browser, if I then inspect the page with the browser debugger and put document.refferer in the javascript console, it shows me the URL to the codeproject profile page.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Nov-11 17:21pm    
Yes, that's it, a 5.
--SA

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