How to track downloads of my templates

Discussion in 'Traffic Analysis' started by andrej, Mar 1, 2008.

  1. #1
    I have a Wordpress themes site and I want to be able to track the downloads of my themes. I don't want to display the stats right on my website, I just need to be able to check the downloads to see which themes are most successful.

    So far Wordpress puts the following code (I think automatically) with each of my DOWNLOAD links:

    So it is tracked, isn't it? I just don't know where can I check the stats?
     
    andrej, Mar 1, 2008 IP
  2. farooqaaa

    farooqaaa Well-Known Member

    Messages:
    2,330
    Likes Received:
    149
    Best Answers:
    0
    Trophy Points:
    180
    #2
    OH! sorry!!. I didn't read your post carefully. I have no idea about that....


    ---------------------------
    Instead of download link, make it "download.php?link=(LINK TO ZIP)". And put the following code in Download.php:
    
    <?php
    // Add the "http://wpmix.com/themes/" to the zip file url.
    $link = "http://wpmix.com/themes/".$_GET["link"];
    
    // Check if the link is set and is not empty
    if(isset($_GET["link"]) AND !empty($_GET["link"])) {
    
    // increment something
    
    }  else {
    
    echo "Sorry! bad link";
    
    }
    ?>
    
    Code (markup):
     
    farooqaaa, Mar 1, 2008 IP