What is outclick tracker? any benefits?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dfa
    Confirmed User
    • Sep 2006
    • 263

    #1

    What is outclick tracker? any benefits?

    i hear people using outclick tracker. What is it exactly, how can i get it?
    And what are the benefits of it?

    Thanks in advance
    =]
  • dfa
    Confirmed User
    • Sep 2006
    • 263

    #2
    I don't need anything fancy. I need something that simply will keep a tally on how many times a link was clicked and wrote it to a file. Something like that is fine. I basically just want to see how many hits a couple links get.
    =]

    Comment

    • Goodings Media
      Confirmed User
      • Apr 2007
      • 1987

      #3
      hey,


      this is something rough n ready, make it more robust as you need to

      PHP Code:
      <?php
      /***** Link tracker*******
      Track hits using ....out.php?out=http://yourtradepartner.com
      
      ************************/
      
      if(isset($_GET['out'])){
              mysql_query("UPDATE tracker SET hitsout=hitsout+1, hitsout_today=hitsout_today+1 WHERE link='" . $_GET['out'] . "'");    
              header('Location: ' . $_GET['out']);
      ?>
      build a table in your database called 'tracker' with fields 'id', 'hitsout', 'hitsout_today', 'link'

      run a cron job with a seperate script each day that sets all 'hitsout_today'=0

      make link the URL of your trade partners. To standardize and simplify the script, always use the form http://partner.com

      So, to use....

      http://www.yourwebsite.com/out.php?o...p://google.com

      Hope that helps
      ICQ: 446-568-913 Email: liam||goodingsmedia.com msn: [email protected]

      Comment

      • papill0n
        Unregistered Abuser
        • Oct 2007
        • 15547

        #4
        Originally posted by dfa
        i hear people using outclick tracker. What is it exactly, how can i get it?
        And what are the benefits of it?

        Thanks in advance

        like you said in your second post the benefits are that you are able to track how many clicks a link gets

        Comment

        • Goodings Media
          Confirmed User
          • Apr 2007
          • 1987

          #5
          just missed out a curly bracket, } :P

          PHP Code:
          <?php
          /***** Link tracker*******
          Track hits using ....out.php?out=http://yourtradepartner.com
          
          ************************/
          
          if(isset($_GET['out'])){
                  mysql_query("UPDATE tracker SET hitsout=hitsout+1, hitsout_today=hitsout_today+1 WHERE link='" . $_GET['out'] . "'");    
                  header('Location: ' . $_GET['out']);
          }
          ?>
          ICQ: 446-568-913 Email: liam||goodingsmedia.com msn: [email protected]

          Comment

          • dfa
            Confirmed User
            • Sep 2006
            • 263

            #6
            thanks a lot guys...really appreciate it
            =]

            Comment

            Working...