Determine Click-thru Percentage With PHP
Posted
by Lea
on Stack Overflow
See other posts from Stack Overflow
or by Lea
Published on 2010-03-14T10:17:37Z
Indexed on
2010/03/14
10:25 UTC
Read the original article
Hit count: 331
Hi all,
I am currently working on a small sponsorship application(PHP/MySql) for my personal blog, and am almost finish, but I am stuck on how to calculate the click-thru rate of my sponsors campaigns.
I was always terrible with working out percentages, so any practical help would be appreciated. The data is stored in the DB as simple numbers.. So as expected, when a page refreshes, or a sponsors ad is clicked, the data updates with an incrementation of 1.
So using these values...say $clicks and $impressions, how would I determine the click-thru rate? What would be the sum I would use to calculate? An example function would really be appreciated.
Kind Regards, Lea
© Stack Overflow or respective owner