How to count redirected traffic?

Discussion in 'Traffic Analysis' started by Gytis B., Dec 16, 2008.

  1. #1
    Hi,

    I am redirecting traffic to another site via .htaccess or php code:

    
    <?php
    header('Location: http://www.example.com/');
    ?>
    
    Code (markup):
    So I wondering to know how could I count traffic which was already sent?
     
    Gytis B., Dec 16, 2008 IP
  2. gostats

    gostats Peon

    Messages:
    325
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your best option would be to setup/install a click tracking script. There are many of these sort of scripts available.
     
    gostats, Dec 16, 2008 IP
  3. Gytis B.

    Gytis B. Peon

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    But there aren't any clicks, so I couldn't track it.
    People just write address and go straight to url where I send them, they don't click anything. Or maybe I didn't understand "click tracking scripts" principles?
     
    Gytis B., Dec 16, 2008 IP
  4. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can forward the visitors to a URL that makes a count then forwards them to the actual URL where you want them to end up. If you know a little PHP this would be fairly easy to script together yourself.
     
    diligenthost, Dec 16, 2008 IP
  5. gostats

    gostats Peon

    Messages:
    325
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    When using a click tracking script, it doesn't need to be an acutal click - in this case, the forced forward will be counted as a "click". For example:
    "yoursite.com/click-tracking-script?id=1" (when someone is redirected through that url it will count it and then forward them to the real url.)
     
    gostats, Dec 17, 2008 IP
  6. Gytis B.

    Gytis B. Peon

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    But it takes many time to redirect to one address, to another after that... Maybe there is something like awstats? It should be free and simple to use install when you aren't server admin, only user.
    Awstats don't tracking traffic when there are only redirection, not index file with any content.
     
    Gytis B., Dec 17, 2008 IP
  7. gostats

    gostats Peon

    Messages:
    325
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It's usually instant to redirect the address. Do you mean something else? If you want something that is easy to install and tracks just the clicks (without needing a re-direct or otherwise) GoStats does have this feature.
     
    gostats, Dec 17, 2008 IP