#1
  1. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jul 2015
    Posts
    7
    Rep Power
    0

    Thumbs down Event Tracking Code Is Not Working


    Hi,

    My events are not showing in Google analytics.
    I have added this code to my website but found events are not shown in reporting section.

    <a href="javascript:void(0)" onclick="_gaq.push(['_trackEvent','arrows','click','backarrow',, 'true'])"><span class="arrow-left"></span></a>


    But someone was suggested me to use this code instead above

    <a href="javascript:void(0)" onClick="_gaq.push(['_trackEvent', 'arrows', 'click', 'backarrow',, true]);"><span class="arrow-left"></span></a>

    I am curious to know which code is correct and what's the main reason

    Hope I'll get some good answers from this forum.

    Thanks!
  2. #2
  3. Super Moderator
    SEO Chat Skiller (1500 - 1999 posts)

    Join Date
    May 2015
    Location
    United Kingdom
    Posts
    1,598
    Rep Power
    2896
    I can't say i'm the most experienced with event tracking. You may want to follow: Event Tracking Google Universal Analytics – Complete Guide | Optimize Smart

    There is also the option of doing this with Google Tag Manager: https://blog.kissmetrics.com/events-...e-tag-manager/
    Always happy to help in private message. | Learn about my latest project Can You Get Automated Pages To Rank In Google?
    Useful Links: Useful SEO Tools | GTmetrix | FileOptimizer | Cloudflare

Similar Threads

  1. Google Ads as event tracking
    By toplisek in forum Google Optimization
    Replies: 1
    Last Post: Apr 10th, 2015, 03:11 PM
  2. Google Analytic Tracking code not working
    By geethach2010 in forum New User SEO Questions and Answers
    Replies: 4
    Last Post: Nov 4th, 2014, 10:33 PM
  3. Backlinks with tracking code query string for click tracking
    By danielfoley in forum Google Optimization
    Replies: 4
    Last Post: May 19th, 2011, 05:48 AM
  4. Tracking code for tracking conversions
    By zarmen in forum Google Adwords
    Replies: 0
    Last Post: Jun 22nd, 2010, 08:32 AM
  5. Replies: 0
    Last Post: Apr 23rd, 2010, 12:14 AM

IMN logo majestic logo threadwatch logo seochat tools logo