• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Tracking menu item with Google Analytics

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Tracking menu item with Google Analytics

This topic is: resolved

Tagged: google anayltics, onclick, tracking link

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 5 months ago by ATS.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 8, 2013 at 4:28 am #54845
    ATS
    Participant

    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
    August 8, 2013 at 10:42 am #54981
    Brad Dalton
    Participant

    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.


    Tutorials for StudioPress Themes.

    August 9, 2013 at 12:32 am #55166
    ATS
    Participant

    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

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble