kind of new to this so not sure how to go about this. The task given to me is to that when a visitor arrives at the site through a link, I need to display to them where they came from.
So if they used Google and clicked on a link in Google to load my site, the site would say something like "Welcome visitor from www.google.com."
First, how to get the information where they came from, I don't really know. I was originally considering using the WP Statistics plugin, but then I was told that the HTTP header would contain this information. I don't really know what the HTTP header is or how it works or if there are exceptions.
What would I use to figure out the referreer, and how can I display that to the user? This site is self-hosted so I have access to all the files via my hosting provider's cPanel.
I am using the "Basic" WordPress theme. Thanks.