Saturday, May 23, 2009

How To : Detect a visitor from Twitter



Visitors coming to my blogs from Twitter now represent something like 10% of all my traffic, which is quite a lot. Because many Twitter users re-tweet blog posts that they like, it may be a very good idea to detect Twitter visitors, welcome them and, of course, remind them that their re-tweets are appreciated.

To do this, open your single.php file and paste these lines where you’d like your “Welcome Twitter user” message to be displayed.




This code will detect readers coming from Twitter and display the message only to them.

Related Posts by Categories



0 comments:

 

Copyright 2008 All Rights Reserved Revolution Two Lifestyle theme by Brian Gardner Convert by Bloganol dot com Edit by Arieyblog

top