
April 29th, 2012, 10:02 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
|
It's possible to do. Instead of sending the HTML for the charts only, add in the HTML for the ads as well. It's a pretty easy thing to do. As far as recording hits go, do you want them to be recorded through some analytics system, or from your own system? If it's another system, then add their tracking code into your HTML as well. If it's your system, just record each view.
On a separate note... I'd be a little bit wary about including your own ads with the charts. The first thing to check is the terms and conditions of the advertisers - I know some that don't allow this sort of thing. There could also be issues if your charts are used on any "not-so-nice" sites, or sites that fall outside of your advertisers T&C's again. You would run the risk of having all of your advertising revoked because of someone else.
|