Google Analytics Nav Menu Tracking
GA Nav Menu Click Tracking
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/pdewouters/ganmct/archive/refs/heads/master.zipGA Nav Menus Tracking
Add Google analytics tracking events to your WordPress navigation menus.
Description
Add tracking events to your WordPress navigation menu items!
Reference: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
This plugin adds custom fields to your nav menu items that represent the parameters for the _trackEvent method of Google Analytics.
This plugin requires that you already have Google Analytics tracking active on your WordPress website. For example you have Yoast's Google Analytics for WordPress installed and activated.
Installation
This section describes how to install the plugin and get it working.
- Upload the plugin folder to the
/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Appearance > Menus and enter your _trackEvent parameters for the nav items you wish to track.
Frequently Asked Questions
What are the requirements for this plugin to work?
This plugin requires a valid Google Analytics tracking code to be installed. I recommend this one: http://wordpress.org/extend/plugins/google-analytics-for-wordpress/
Screenshots
- The nav menu items fields added by plugin to enter your tracking event parameters (category, action and label)
Changelog
1.0.6
Remove the dust and test if works with 4.0
1.0.5
fixed plugin description
1.0.4
added pot file for translators
1.0.3
Fixed a bug in javascript
1.0
- Initial version relased to the public.