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

    Is there any way to add on click events to the mega menu…

    I need to track some of the links within google analytics in the header menu of the site.
    I can easily add them to the body using this code <a href="http://b.buzinga.com.au/contact/" onclick="ga('send', 'event', 'Phone Number', 'Clicked');">Contact Us</a> but don’t seem to be able to add code to the menu.

    • This topic was modified 8 years ago by Ron. Reason: had to redone took out the wrong code
    #722309

    Hey Guys…

    Got this sorted used this site to test http://www.detectingadwarespyware.com and realized all I need to do was install this plugin “WP Google Analytics Events” then use the advanced features of the menus by going to the Screen Options and selecting Show Advanced Menu Properties and selecting CSS Class to be displayed. Then I just use the custom class I created to add the Google event in the plugin I installed it is to simple once you know how.

    You can close this ticket thanks.

    • This reply was modified 8 years ago by Ron. Reason: spelling mistake
    #722524

    Hi,

    glad you could solve it and thanks for sharing. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Best regards,
    Andy

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Onclick Events Mega Menu’ is closed to new replies.