• My site has a short url, so I created my own link-shortening script to keep the branding out there when I Tweet the links.

    Here is the code for the redirection:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html><head>
    <meta http-equiv="REFRESH" content="0;url=<? echo "$url"; ?>">
    </HEAD><BODY>
    <p>
    Redirecting to the article...
    <p>
    If you're not automatically redirected:
    <p>
    <b><a href="<? echo "$url"; ?>">CLICK HERE to Continue</a></b>
    </p>
    </BODY></HTML>

    I use this just to track how many people actually click on the links, since the WordPress.com stats doesn’t show all the incoming traffic. But I’m noticing that anyone who clicks through with this redirection isn’t being counted. Is there something I need to do differently to get this stats program to see the clickthrough? In other words is there a redirection script I should use instead that may work better?

Viewing 1 replies (of 1 total)
  • Thread Starter patsfans

    (@patsfans)

    In other words tinyurl.com and bit.ly don’t offer traffic stats, so I created this to track how many people were clicking through from my tweets using a PHP redirect, and the numbers aren’t matching the number of views from the stats program. So I’m just wondering if there’s a different way I should be doing it.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress.com traffic with PHP redirect’ is closed to new replies.