Text Link Ads


Wednesday, July 23, 2008

Some Questions Answered

I received a few questions via email that I thought I would answer here for the benefit of all:

Q1. Where do I create the goto.php file? Where should it be placed exactly?

A1. The goto.php file can be placed wherever you like on your website. I personally prefer the root folder of the web site because it makes the link urls smaller, but if you put it in a folder called "utils" off the root then your links would look like:

<a href="/utils/goto.php?target=Whatever">
If you put it in the root folder then it would just be:

<a href="/goto.php?target=Whatever">
Q2. Will this allow me to use 1 tracking code for each affiliate link so that if I have to update an affiliate link in the future, I would just change the affiliate link in the goto.php file?

That's exactly right and is one of the big advantages of handling your affiliate links this way (the other big advantage being hiding them from your customers).

Q3. Will this also track how many times a user clicks on the affiliate links?

If you are using Google Analytics as I described in a previous post then you can format your links as follows to track them. Normally this page wouldn't be tracked by Analytics because it is just a redirect page.
<a onclick="javascript: pageTracker._trackPageview('/goto.php?target=UltimateBet');"  target="_blank" href="/goto.php?target=UltimateBet">
The
onclick="javascript: pageTracker._trackPageview('/goto.php?target=UltimateBet');"
is the critical section that allows Google Analytics to track clicks on the affiliate link.

9 comments:

  1. This is excellent advice for any poker affiliate. Cheers.
    ReplyDelete
  2. This comment has been removed by a blog administrator.
    ReplyDelete
  3. Hello I am not a big time reader, but somehow I got to reading your blog. Its very interesting. I will check back with you again...

    Randy Culen
    ReplyDelete
  4. Great advice on how to track affiliate link ads. I always wondered where to put the "goto.php" file.

    web hosting uk
    ReplyDelete
  5. This is essential for marketers who want to track their data on affiliate link ads.
    ReplyDelete
  6. It's important to get this data so companies can fix their marketing strategies accordingly.
    web development melbourne
    ReplyDelete
  7. That would be very helpful for me. I'm just starting to develop a website and I'm glad you shared these tips.

    long island seo
    ReplyDelete
  8. Page tracking can be done automatically with the use of web master tools. Google and other analytic site will track the records of everypage views and traffic for your website.
    ReplyDelete