Tracking menu item with Google Analytics

Community Forums Forums General Discussion Tracking menu item with Google Analytics

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  ATS 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #54845

    ATS
    Participant
    Post count: 16

    HI,

    tracking a link or banner within a site is easy with onClick function like this:

    <a href="http://www.example.com/" onClick="_gaq.push(['_trackEvent', 'LivePage', 'Banners', 'Banner-1']);"><img src="http://www.example.com/system3.jpg"</img></a>

    But what if you need to track specific menu item clicks??? How to create a code for that?
    Exactly I need to track clicks on top menu blue item ‘Products & Courses’ here: http://www.realmenrealstyle.com

    Any guidance is appreciated!

    http://www.realmenrealstyle.com
    #54981

    braddalton
    Participant
    Post count: 10594

    Why couldn’t you simply add this url to GA to track it as a new goal url or shorten it using a tracking service to Simple URL’s and add it to the menu as a custom link.


    #55166

    ATS
    Participant
    Post count: 16

    braddalton, thank you for your response.
    Adding just URL is not my goal as this URL could be accessed in different ways.
    The goal is to track how many clicks people made exactly on that menu button.
    I’v found solution with this light weight plugin though. It does the job!
    GA Nav Menus Tracking

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.