WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics and Event Tracking (4 posts)

  1. mibiewer
    Member
    Posted 4 years ago #

    Hey everyone,

    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.

  2. isaacyassar
    Member
    Posted 4 years ago #

    A plugin named GoCodes can count your banner-click via its redirection. Very good for affiliate banners. It's an alternative counter if you have some affiliate banners / buttons on your site.

    Cheers :D

  3. mibiewer
    Member
    Posted 4 years ago #

    Thanks for the suggestion.

    I actually tried the "Ultimate Google Analyitcs" plugin as well. So I've tried two plug ins and two different ways of hard coding it in. I'm not having success with either. One thing I have noticed is that everything that I am trying to track is within my sidebar widget. I've been trying to track twitter click thru's and clicks on my ad banners that are populated through ad-minister.

    Anyone else having an issue with google analytics, the sidebar widget, and event tracking?

    Thanks again!

  4. jamesb4551
    Member
    Posted 4 years ago #

    I've got it half working, I use the ultimate google analytics too. When using the plugin it will track your outgoing clicks as page views, so check your settings in the plugin to make sure it's set to track them, then in analytics goto the content section and hit top content, then search for outbound/ it should show them for any outbound clicks on .jpg .gif banners, for swfs I have got the event tracking to work but only in firefox using the code here it work's but not in Safari, use the code I have at that link, just add the missing <> brackets on the h ref and /a.
    If you find a way of getting it working cross browser, let me know.
    Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.