1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

Event Tracking Not Working. Is it because of Traditional GA Code?

Discussion in 'Google Analytics' started by todawaladitya, Mar 7, 2012.

  1. #1
    I have traditional GA Code on my website. Recently I implemented event tracking code on image to track clicks on that image. Its a mailto link. Here is the event tracking code implemented

    <a href="mailto:marketing@kensingtonretirement.com?subject=Website Inquiry" onClick="_gaq.push(['_trackEvent', 'Content CTAs', 'Click', 'Contact Us']);"><img src="images/contact_home.png" width="215" height="94" border="0" /></a>

    I guess there is no problem with this code but in my opinion it doesn't works with traditional GA code which is installed above closing body tag.

    It would be great if someone could point out the exact problem. Should I migrate to asynchronous GA Code? I searched a lot but there is no information if event tracking works with traditional GA code or not.

    Thanks in advance.
    Adi
     
    todawaladitya, Mar 7, 2012 IP
  2. kaya man

    kaya man Greenhorn

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    Hi,

    you should switch to the new GA asynchronous code :)

    Regards
     
    kaya man, Mar 12, 2012 IP