Dax

Referral Feed

August 17th, 2006 · 2 Comments

drug-dealer.gifThis is about as quick and dirty as quick and dirty plugins get.

The most fun part of having a website is seeing where all the people that come to it come from. That’s why the DigitalPoint visitor mapping tool is so rad and sweet.

To keep you from obsessively checking your logs, I wrote a wordpress plugin that generates an rss feed of the last 25 referrals and where they ended up on your site. You could check mine by visiting http://www.biggnuts.com/referrals_rss.php, but oops I password protected it too. This way, you can just load up your rss referral feed in Sage or whatever you use and click the little deal to get up to the minute visitor info.

Here’s how to install.

DOWNLOAD REFERRAL FEED v 2.0

Then set the password inside the file before you upload it. The password is on line 24 and is blank by default.

$rf_password = “”;

You can leave it blank, but then if you have a link to your site in your signature file on like My Little Pony forums, someone will eventually find out. Change it to:

$rf_password = “yourpassword”;

Upload to your plugin directory.
Activate it.
Go to http://yoursite.com/referrals_rss.php?pass=yourpassword

Dibbity doo.

(If I misspelled referer or referral anywhere, please do not tell me)

UPDATE v2.0

Storing the whole deal in the database now. Now you don’t have to change a bunch of permissions and shit. Just upload and go.

UPDATE v1.2

I added some nicer formatting for searches that come from Google. Also, I was afraid this thing might leak your password if you’re viewing the feed in some weird way (passing the password via a referral to a nosey site) but I don’t think it will. I can’t get it to do so anyway.

Tags: Wordpress Plugins

2 responses so far ↓

  • 1 Shawn Hogan // Aug 18, 2006 at 12:00 am

    Hey, that Digital Point tool *is* rad and sweet! hah j/k

    Here, you have a visitor from Costa Rica on it now since I went straight from SES to Costa Rica.

  • 2 Peter // Dec 24, 2006 at 10:30 am

    Really cool plugin, it nice to get some quick idea of where people are comming from. http://krapanj.com

Leave a Comment