$5 to the one who helps me with this

Discussion in 'PHP' started by androide, Jan 28, 2009.

  1. #1
    Hi,

    I really do not know PHP at all.

    Now, I have an AdWords campaign pointing to one affiliate landing page hosted on my website.

    I'm using a software in php to track which keywords bring a visitor to my website from the AdWords and then which keywords convert to a sale as an clickbank affiliate.

    The program I'm using track these keywords using the "tid" function of clickbank.

    I mean, for every keywords it gives a different tid and when I make a sale, I just go to clickbank and see which tid converted to sale. Then I go to the control panel of this program and look at the tid for the corrisponding keyword.

    To give a different tid to every keywords, I needed to change every link on my landing page from "www.destinationurl.com" to "www.destinationurl.com/?tid= <?php echo $var; ?>" .

    Now, it is all working good.

    Now I want more, and I want to track how many clicks every single link on my landing page is receiving (so basically I want to track the CTR of every link on my landing page).

    I tried different PHP outgoing link counter, but they track just statical url and I wasn't able to make them track url like this www.destinationurl.com/?tid= <?php echo $var; ?>"


    I think that if I know anything about PHP I would be able to do, but I do not know it.

    If you need more details just ask and I'll answer.

    I will make the payment once links will work - NOT before.



    didn't track the different url.
     
    androide, Jan 28, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    are you joking with 5$?
    in my opinion this can be done via a mysql table and simple php tracking system but I wont make it for 5$
    make it 25$ and I will take care maybe
     
    crivion, Jan 28, 2009 IP
  3. SiteTalkZone

    SiteTalkZone Peon

    Messages:
    243
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thats what I was thinking you need to set up a database and update it with each click. You ain't gonna get far with $5 though haha.
     
    SiteTalkZone, Jan 28, 2009 IP
  4. androide

    androide Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well, I do not think it's worth $25.

    With $39 I can buy a program that does all automatic.

    Btw, I increase the price to $15.
     
    androide, Jan 28, 2009 IP
  5. darkmessiah

    darkmessiah Peon

    Messages:
    500
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    on all your links, put an onclick="clicktrack(this.url,someotherdata,someotherdata)"

    In your <head></head>write some javascript with the function name clicktrack(url,data1,data2)

    or

    anytime someone lands on your landing page, gather the $_GET data and fead it to something like this.

    
    <?php 
    
    $aid = $_GET['aid'];
    $loc = $_GET['loc'];
    $url = $_GET['url'];
    
    
    
    $filename = "./clicks-".date("m-d-Y").".html";
    
    $ip = getenv("REMOTE_ADDR");
    $userAgent = getenv("HTTP_USER_AGENT");
    $string = date("Y-m-d G:i:s T") .";\n" 
            .$url .";\n" 
            .$aid .";\n"  
            .$loc .";\n" 
            .$ip .";\n" 
            .$userAgent .";\n\n";
    $fp = @fopen($filename, "a");
    if ($fp) {
        @fputs ($fp, $string, strlen($string));
        @fclose($fp);
    }
    ?>
    
    Code (markup):
     
    darkmessiah, Jan 29, 2009 IP
  6. androide

    androide Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thank you for the free info.

    However, I'm not able even to do this:
    or to put something instead of "someotherdata" in the first line!

    I would need you to do this - I know you will lose time and this is why I can pay you.

    Btw, I sent you a PM with a thing that you might be interested on.

    Let me know,

    Thank you.
     
    androide, Jan 29, 2009 IP
  7. androide

    androide Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Now I'm finally able to track clicks on my website.

    Thank you for the PM info darkmessiah.
     
    androide, Jan 30, 2009 IP