Problem with Event Tracking in Google Analytics

Discussion in 'Google Analytics' started by purelyproven, Feb 28, 2012.

  1. #1
    Hi guys. I really need some help on this. No clue why it's not working.

    I am trying to track a submit-button click via _trackEvent. I tried trackPageView and that wasn't working either.

    I initialize GA just below the </head>. GA is loading fine because it is tracking the pageviews and I can see it in real-time when I am on that page.

    Here is my code for the button:
    <input type="submit" class="submit" value="Calculate!" onSubmit="_gaq.push(['_trackEvent', 'quote', 'calculate'])">

    In the config for the Event:
    Category that matches quote
    Action that matches calculate
    Label and value are blank.

    Constant value = 100.

    The form submits properly but the Event is not tracked in GA.

    Any assistance would be greatly appreciated!

    Thanks,
    Jeff
     
    purelyproven, Feb 28, 2012 IP