Tracking Visitors With PHP
- 0
- Add a Comment
A long while back I wrote up an article about how to track when Googlebot had come to pay your Web site a visit. After receiving dozens of E-mails on that topic, I figured I’d hunt down another useful way of tracking things using PHP. The best thing about PHP coding in general is that there are so many scripts and codes other folks have already figured out. To get most of them working, all you need to do is plug the code into your PHP Web page. That is what lead me to these scripts which use a few strings of PHP code to track your Web site visitors.
Just as a warning, some of this code might scare the few folks out there who are not used to messing with things “under the hood” so to speak.
The most important part is getting the information from your visitor. Thankfully, this is extremely easy to do in PHP (or any other scripting language for that matter). PHP has a special global variable called $_SERVER which contains several environment variables, including information about your visitor.
Need to know more? Check out the full article on tracking your visitors using PHP over at The Dev Web!
