MAGEE Shortcodes Plugin
Magee Shortcodes Plugin for WordPress was once my favourite presentational plugin for WordPress. It uses shortcodes to create all manner of ‘presentational stuff’ on the webpage. Even though now I find MAGEE ‘columns’ Shortcode unusable the ‘buttons’ with their rounded edges and cursor hover colour changes are good.
I’ve modified the MAGEE button class PHP file to accept and transmit the ‘onClick’ event in the format required for Google Analytics behaviours/events. Now whenever any Magee button is clicked on page, as long as the onClick event name for the button is set up in Google Analytics Events, then the clickthrough will be recorded.
Here is the class-button.php file to replace the original one in the Magee Shortcodes plugin folder. class-button.zip