Adds a button to the WP Editor for easy insertion of links that can be tracked as Events in Google Analytics using the gtag js code.
|Author:||Howard Ehrenberg (profile at wordpress.org)|
|WordPress version required:||4.5|
|WordPress version tested:||5.2|
|Added to WordPress repository:||06-09-2018|
Click to start download
Do I have to use the TinyMCE button to add event tracking?
No, you can simply add data-track=”event” to trigger the event, and use data-category, data-label, and data-action to include those elements in the event.
Does this track all click events?
If you use the simple editor button, or add the data-event = “true” to any
<a> tag, then it will track the event in Google Analytics.
Does this only work with GTAG?
There are options in the settings page of the plugin to choose Universal Analytics analytics.js