Welcome to WebmasterWorld Guest from

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Tracking newsletter referrals

1:36 pm on Jun 9, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 6, 2000
votes: 0

I send out a weekly newsletter for one of my sites, and thought it would be nice to be able to track how many referalls each link in the newsletter generates. I thought of using links in the form of page.html?ref=1234 so that log entries traceable to the newsletter would be created.

I'm assuming that as the page is pure HTML, the server will basically throw away the ?ref=1234 portion, or am I missing something?

2:54 pm on June 9, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 10, 2000
votes: 0

We used to do something similar but we were using asp and just did a server side redirect for each link and it was really easy to track.

If I was just playing with HTML I might just build a page that is simply a javascript redirect or a meta refresh that bounces folks through. Then you just watch for the redirect pages in your logs.

For example: news0901.htm would refresh to news.htm or whatever. This way you can also track dates (news0901 = september 2001 newsletter).

I'm sure there's some better way to do this on the server but not being a scripting type person this is an easy and effective method if the volume of newsletters and rediervt pages is fairly low.

4:12 am on June 12, 2001 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
votes: 28

I did something similar. I created a directory with nothing in it but a htaccess file and a 404 redirect. The links I used in the newsletter were just "domain.com/directory/12.htm" and none of those files actually existed - they were just codes for the linke. The 404 logged all the headers and then sent the user via a location redirect to the proper page.

ErrorDocument 404 http*//www.site.com/cgi-bin/404.cgi

Where 404.cgi is my script handler that is the header logger and a print "Location: httprealurlhere"

6:16 pm on June 19, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 7, 2000
votes: 0

yup - I have several folders set up for direct mailers, banners, newsletters, etc that are chuck full of redirects. Redirects are great considering that they are clean, unassuming, and are easy to pull stats from if you have a homegrown tool that pulls hits(clean) and referrers for you.


12:55 am on June 27, 2001 (gmt 0)

Inactive Member
Account Expired


Forums for e-newsletter publishers haved mentioned a $45 perl script called ProLinkz (prolinkz.com). I'm not affiliated but just bought it. Set it up last week. Looks good but not enough time with it to recommend it.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members