Ad rotator with click tracking

Posted on 2006-04-20
Medium Priority
Last Modified: 2012-05-05
I am looking for some sample code that will rotate ads on a web page.  The code I have is a javascript and it rotates the ads find.  I want to be able to track the clicks each time an ad is clicked on.    I am using asp.net but dont want tp use the ad rotator control becuase i want the ads to rotate every few seconds and no just when the page is refreshed.  Can somebody give me input on how i can do this?

Question by:Mike_Stevens
  • 2
  • 2
LVL 11

Expert Comment

ID: 16497164
can't your monitor onclick event and see what is the ad that is clicked at the moment?

Author Comment

ID: 16497185
I dont know......i guess that is what I am asking
LVL 11

Accepted Solution

WelkinMaze earned 2000 total points
ID: 16497305
I think you can use such approach.
Write a javascript function YourFunction which to be called on onClick event, and add it in the tag where the ads are handled like this onClick="YourFunction()"
In the function check which ad is currently displayed - I suppose you can check for some id of the ad, you may see it from the JS function that you've said you already use.

Author Comment

ID: 16497585
I will give it a shot.  Sounds like a good approach.  Now i just have to see if i can make it work.

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question