I am desperately trying to figure out HOW to add tracking code to my rotating banner.
I have random "onload", rotating banner ads on my website. The script works like a charm and will randomly load a banner ad when you go to the site and will continue rotating the bannners while you are surfing the site. The code below is in a separate .js file and there is a <div> tag within the html code of each page that tells the banners where to display.
My problem is, when I add Google tracking code to my banner script, the banners disappear completely.
This is the Google tracking code:
(I have tried rearranging the code in various ways, with no success).
Here is the banner ad script (as you can see the google tracking code is already in place, but does not work. The only time I can get the banners to work with the tracking code in place is if I change the single quotes to double quotes in this part of the code: '_trackPageview', '/bannerad/leighfibers', but when I do that then the onclick event does not work which means the tracking code does not work).
PLEASE, PLEASE HELP!!!
BTW: I am also open to using a different banner ad script as long as it does the same thing as the one I have now.
Many thanks to anyone who is willing to help me!!