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.
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
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..."