Tracking Button Clicks as Events in Google Analytics

Discussion in 'Google Analytics' started by Nima, Feb 9, 2014.

  1. #1
    I'm trying (having trouble) to track clicks on a button on a page using Google Analytics. I'm using the below code. I've also attached a screen shot of the configuration.

    Can someone tell me why its not working?

    
    <a href="http://www.website.com/" onClick="_gaq.push(['_trackEvent', 'Signup', 'Click', 'Clicking on Signup Page']);">Button Image</a>
    
    Code (markup):
    [​IMG]
     
    Nima, Feb 9, 2014 IP
  2. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #2
    Nima, Feb 12, 2014 IP
  3. BoostSoftware

    BoostSoftware Active Member

    Messages:
    226
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    93
    #3
    I'm glad you figured it out. Sometimes, all it takes is forgetting one tiny syntax of code. Then, the entire thing doesn't work.
     
    BoostSoftware, Feb 16, 2014 IP