ooiioo Posted May 13, 2008 Share Posted May 13, 2008 Hi,I have a website that run advertiser space. it's not adsense. my website sell ad space to advertiser. and there are members's login for visitors from my site. How do i track what ad's my members are clicking and how many times in a day? I used mySQL to store the database and i use php. How am i able to link it together so that i can track which member click on which ads? i have tried many ways but i just can't seem to figure it out. Help please! Link to comment Share on other sites More sharing options...
killboy Posted May 13, 2008 Share Posted May 13, 2008 I don't know if there's a smarter solution, but I would use AJAX so I can handle the event. If the banner is clicked, I run the AJAX function, which would go the server and update the value of a row in the DB called "clicks" incrementing its value. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 13, 2008 Share Posted May 13, 2008 You can also have the banner link to a PHP page that first records the click and then redirects to the ad URL. Link to comment Share on other sites More sharing options...
killboy Posted May 14, 2008 Share Posted May 14, 2008 But what if the user goes to page through the History?? That would count as another click. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 14, 2008 Share Posted May 14, 2008 That's not a click, that's them going to a page in their history. If the page they go to is the page that records the hit and redirects them then it will record another hit. If the page they go to is the page they got redirected to then there's nothing you can do to track that some random user went to some random web page that you don't have control over. Both pages may or may not be in the history, it's pretty much the user's choice which one they choose to go to. Link to comment Share on other sites More sharing options...
killboy Posted May 14, 2008 Share Posted May 14, 2008 That's what I was talking about, the page that redirects them. With AJAX the page wouldn't be in the History. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 14, 2008 Share Posted May 14, 2008 Yeah, that's true. But why would someone pull down their history and go to redirect.php? And what's the problem if they do? Link to comment Share on other sites More sharing options...
killboy Posted May 14, 2008 Share Posted May 14, 2008 It's not like they do it on purpose to count a click, maybe they see the site there and wonder "hey, what's this site about?".The way I see it, if you want to track the clicks, is because you're gonna give a prize or something to the company; therefore, you would need to have an accurate count of the clicks. Link to comment Share on other sites More sharing options...
ooiioo Posted May 15, 2008 Author Share Posted May 15, 2008 It's not like they do it on purpose to count a click, maybe they see the site there and wonder "hey, what's this site about?".The way I see it, if you want to track the clicks, is because you're gonna give a prize or something to the company; therefore, you would need to have an accurate count of the clicks. ya, u r right! so how do i actually link up so that i can track other than using AJAX? Link to comment Share on other sites More sharing options...
killboy Posted May 15, 2008 Share Posted May 15, 2008 Well, looks like if you want to have an accurate track, you should use AJAX. I honestly can't think of a better way. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.