safearticles.com safearticles.com
Search:    Index -> About Us -> Privacy Policy -> Terms of Service -> Add Url -> Submit Article   
 
 

Pop Ups: The Love Them or Hate Them Debate

Pop Ups ... everyone seems to hate them, and everyone seems to block them. But is that really the ca ... - Robin Porter
 

Grow Your Business with Affiliate Marketing

To generate additional business income, consider expanding your business through affiliate marketing ... - J. Stephen Pope
 

Are You Using the Internet Effectively to Increase Turnover at your Restaurant?

Whilst the hotel industry has fully embraced the marketing and communications opportunities that the ... - Ivor Conway
 
 

How to Deal with Spelling Variation in Search Engine Optimization

English language has come a long way on its path to evolution, and it still evolving. The language, ... - Deepaq Sharma
 

How to Improve Your Search Engine Positioning and Increase Traffic Today

Tips, Tactics, and Secrets for Achieving Search Engine Success - Michael Turner
 
 

  Index › Computers & Software › Internet Marketing Solutions
   
 

Tracking Google and Googlebot Using PHP

   
Author: Richard Daris
 

Many people work for hours and hours, days and days to make sure the Web site they have is ready for Google and it's Googlebot whenever it might come for a visit.

The problem most folks run into though is how do you know it is there? Some forum and blogging scripts come with better ways to track bots as they comb through your pages. What about everyone else though? Well this is where these scripts come in. All you need is to be able to parse PHP through your Web site and you too can track the Googlebot even better.

I am not totally sure who wrote these PHP scripts up first, but I have not seen it talked about many places at all. Hopefully this will a handy tool for you to use.

Easy Version

With this version of the script you need to replace the "yourdomainname.com" with your own domain name and replace "you@youremail.com" with your E-mail address.

<? if(eregi("googlebot",$HTTP_USER_AGENT)) { mail("you@youremail.com", "Googlebot detected on yourdomainname.com", "Google has crawled yourdomainname.com"); } ?>

Expert Version

<? if(eregi("googlebot",$HTTP_USER_AGENT)) { if ($QUERY_STRING != "") {$url = "http://".$SERVER_NAME.$PHP_SELF.'?'.$QUERY_STRING;} else {$url = "http://".$SERVER_NAME.$PHP_SELF;} $today = date("F j, Y, g:i a"); mail("you@youremail.com", "Googlebot detected on http://$SERVER_NAME", "$today - Google crawled $url"); } ?>

Hopefully this will be of some use to people working on their Web sites who want to keep a better eye on where the Googlebot is looking at.

Visit Authors Website
www.freebooksoft.com

 
 
 

Related Articles

 
eConnect: eCommerce Development for Microsoft Great Plains
 
The Essential Tools Your NEW Internet Marketing Business Needs to become a Resounding Success
 
How To Make Quick Cash With Resell Rights
 
Primary Ages of Adam and Seth
 
Computer Simulations of Wind Patterns
 
Physical and Mental Fitness for Internet Marketers
 
Linking Out is Good
 
5 Things You Must Consider Before Joining An Affiliate Program
 
Passively Acquiring New Subscribers by the Boatload
 
Creating Personal Web Sites (Part 2)
 
 
 
Add Url
 

Self Enhancement

Realty & Property

Teens & Children

Creative Arts

Jobs & Employment

Garden & Home

Lifestyle & Fashion

Computers & Software

Issues & News

People & Communities

Government & Politics

Online & Board Games

Hotels & Travel

Business & Companies

Automotive

Malls & Shopping

Health & Therapy

Medical Care

Research & Science

Recreation & Entertainment

Finance & Banking

Education & Learning

Drink & Food

Outdoor & Sports

 
Index -> Privacy Policy -> Terms of Service  
© 2006-2008 www.safearticles.com All Rights Reserved Worldwide.