Count Outbound Paypal Button Clicks ?

Discussion in 'HTML & Website Design' started by techbuzz, Dec 26, 2006.

  1. #1
    I'm looking for the best way to count outbound clicks on an encrypted paypal button. I know there are click-counters that use a redirect page or similar to count outbound links, but since paypal buttons use a form submit, I'm not clear on how I would set something like this up.

    Some quick google searches haven't yielded anything yet, but I'm sure others are/want to count clickthroughs to the paypal cart. Ideas? Thanks.
     
    techbuzz, Dec 26, 2006 IP
  2. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #2
    Instead of submitting the form directly to paypal, submit it to your script page which counts hits etc.
    <form action="count.php" method="post">

    Do the tracking.
    On this same page, which counts, use:
    <body onLoad="document.form.submit();">

    and make sure to remove the submit button from this form where the form is automatically submitted.
    Bye :)
     
    JEET, Dec 26, 2006 IP
  3. techbuzz

    techbuzz Peon

    Messages:
    77
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks! I just implemented that two step process through my clickcounter.

    It seems that the body onlaod event has a delay of a couple of seconds. I placed text in my onload form page to the effect of "ONE SECOND - proceeding to payment page..." :)
     
    techbuzz, Dec 26, 2006 IP