I’m pretty new to wordpress and google analytics, but I think I’ve got enough understanding of each to make this problem not a problem, but I am stumped.
I’m trying to track an event, a click, on a banner on my site. I’ve appended my Google Analytics Tracking Code (GATC) with the following line, using the Google Anayltics plug-in for wordpress by Spiral Web Consulting. I added it to the field, “additional tracking code, after tracker initialization.”
//creates and event tracker object with the name “Exit Points”
var exitTracker = pageTracker._createEventTracker(‘Exit Points’);
I am also using the ad-minister plugin for controlling my banner ads on my site. I’ve placed this code inside of the content of the banner.
<a href=”http://www.countryfinancial.com/steven.aune” target=”_blank”
onClick=”exitTracker._trackEvent(‘Click’ , ‘Country Financial -Track)”>
<img class=”alignnone size-full wp-image-253″ title=”country-financial” src=”http://outdoordesignandliving.com/wp-content/uploads/2009/04/country-financial.jpg” alt=”country-financial” width=”460″ height=”60″ />
I’ve tried this a couple of different ways and I’m honestly just frustrated now. I’d like to be able to track the click throughs and impressions through google analytics so I can set goals and conversions, but I’m struggling just getting the click through event track to work.
Am I missing something super easy and stupid?
Thanks ahead of time.
- The topic ‘Google Analytics and Event Tracking’ is closed to new replies.