Detect Twitter visitors

If you want to get all the visitors from Twitter a special greeting,Adding this PHP code to your wordpress theme will display a message to people that visit your site via Twitter.This would be useful to determine user from facebook.twitter,digg etc . all websites.

 

 

  if (strpos($_SERVER[HTTP_REFERER], "twitter.com") == true) {
echo "Hello Twitter User!";
}

Be Sociable, Share!

Leave a comment