spires Posted August 28, 2007 Share Posted August 28, 2007 Hi Guys & Girls Just a quick question. How can you track which search engine visitors have come from? Also, is it possible to see what phrase they used when searching for your site? Thanks for all your help Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 28, 2007 Share Posted August 28, 2007 Check out Google Analytics, it's a really cool tool for that sort of thing. Quote Link to comment Share on other sites More sharing options...
spires Posted August 28, 2007 Author Share Posted August 28, 2007 Hi, thanks for your reply. I've got a few tools that track everything. Webtrends is one of them. But, It needs to be a bespoke system as it (so far) tracks if they came from Email, Fax and Adwords. I now need it to track if they came from a google search, or another search. I'm building a system that will display a unique code on each page depening on where they came from, which page there on and the date. For Example: Quote 21-3-A = cheap mobile calls - service.php - Adwords This code is then quoted over the phone. Its the best way of tracking convertions from keyword input to sales. Sorry for the long explanation. So, if you know of any good articles on how to do it, that would be great. Thanks Quote Link to comment Share on other sites More sharing options...
trq Posted August 28, 2007 Share Posted August 28, 2007 Unless the refering site sends extra data (ie a url to your site looks like... http://yoursite.com/?ref=data) you can't do it. All you can do is check $_SERVER['HTTP_REFERER'] and even that can be spooked. By the time a user gets to your site, and previous requests data is long gone. Quote Link to comment Share on other sites More sharing options...
spires Posted August 28, 2007 Author Share Posted August 28, 2007 OK, cool. Thanks for your help. I'll look into it. Quote Link to comment Share on other sites More sharing options...
spires Posted August 28, 2007 Author Share Posted August 28, 2007 Hi. I did a search on $_SERVER['HTTP_REFERER'] and found these: $ipaddress = $_SERVER['REMOTE_ADDR']; $referrer = $_SERVER['HTTP_REFERER']; $datetime = mktime(); $useragent = $_SERVER['HTTP_USER_AGENT']; $remotehost = @getHostByAddr($ipaddress); They might help someone else. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.