• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

Ad rotator with click tracking

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?

Thanks
0
Mike_Stevens
Asked:
Mike_Stevens
  • 2
  • 2
1 Solution
 
WelkinMazeCommented:
Hi,
can't your monitor onclick event and see what is the ad that is clicked at the moment?
0
 
Mike_StevensAuthor Commented:
I dont know......i guess that is what I am asking
0
 
WelkinMazeCommented:
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.
0
 
Mike_StevensAuthor Commented:
I will give it a shot.  Sounds like a good approach.  Now i just have to see if i can make it work.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now