[advanced search]
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 08-26-2007, 06:13 PM   · #1
estibot.com
Formerly Josh_1
 
estibot.com's Avatar
 
Name: Esa
Trader Rating: (16)
Join Date: Jun 2006
Posts: 1,806
NP$: 126.00 (Donate)
estibot.com has much to be proud ofestibot.com has much to be proud ofestibot.com has much to be proud ofestibot.com has much to be proud ofestibot.com has much to be proud ofestibot.com has much to be proud ofestibot.com has much to be proud ofestibot.com has much to be proud ofestibot.com has much to be proud of
Ethan Allen Fund Ethan Allen Fund South Asia Earthquake Relief
Code for tracking conversion goals

Hi all,

Since I'm just an aspiring coder, this is probably very 101 for many of you. Nevertheless, thought I'd share this piece of code I made, maybe some will find it useful.

It's a little php file for tracking your site's conversions. Especially for those who are trying to fund their website through affiliate marketing.

The trick is to create a "go" page instead of linking directly to the affiliate sites. This way you can use your own stats program, Google Analytics or whatever, to easily track your affiliate links' performance.

Create a file called "go.php". Place it in your website's root.

Here is the entire content you'll need in the file:
Code:
<html> <head> <title>Redirecting...</title> </head> <body bgcolor="#FFFFFF"> <? $siteurl=$_GET['site']; ?> <script language=javascript> setTimeout("location.href='<?=$siteurl?>'", [1000]); </script> <!--- Add your google analytics or other stats code here--> </body> </html>


Now, in your website, instead of linking to an affiliate program directly, link to the go page.

For instance, if your own website is called example.com and your affiliate landing page is
Code:
http://www.affiliatewhatever.com/myid


Your link should look like this:
Code:
http://example.com/go.php?site=http://www.affiliatewhatever.com/myid


Just add your stats code to where it says on the code, and you should be able to follow your affiliate links' performance very effectively. Of course, it still won't track the actual sales, but you'll get an idea of the clickthroughs.

I also posted this on my blog, but since no one hardly ever reads it, thought I'd post it here so it might get more eyeballs and be of some use to someone

Cheers!
Josh


Please register or log-in into NamePros to hide ads
__________________
Your Search For Available Domains Is Over.
Estibot Long Tail and Available Domain Tools.

Enter The Final Frontier of Hand Registration Now. The Train is Leaving.
estibot.com is offline   Reply With Quote
Old 08-27-2007, 01:15 AM   · #2
James
Murphy
 
James's Avatar
 
Name: knivesforapro
Location: Australia
Trader Rating: (47)
Join Date: Feb 2007
Posts: 2,265
NP$: 809.70 (Donate)
James has much to be proud ofJames has much to be proud ofJames has much to be proud ofJames has much to be proud ofJames has much to be proud ofJames has much to be proud ofJames has much to be proud ofJames has much to be proud ofJames has much to be proud of
Ethan Allen Fund Cancer
Moved to Code forum
__________________
Need help? I'm always here to help - Just send me a PM
James is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


Site Sponsors
Hunting Moon http://www.mobisitetrader.com/ Build your NameBrand
Advertise your business at NamePros
All times are GMT -7. The time now is 09:47 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0