Title: WordPress.com traffic with PHP redirect
Last modified: August 19, 2016

---

# WordPress.com traffic with PHP redirect

 *  [patsfans](https://wordpress.org/support/users/patsfans/)
 * (@patsfans)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/wordpresscom-traffic-with-php-redirect/)
 * 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](https://wordpress.org/support/users/patsfans/)
 * (@patsfans)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/wordpresscom-traffic-with-php-redirect/#post-1617944)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [patsfans](https://wordpress.org/support/users/patsfans/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/wordpresscom-traffic-with-php-redirect/#post-1617944)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
