I am using the JCK Editor for Joomla. The Link tool allows me to add ID, Name, Style, and some other values. I need to add another 2 fields to this list for a 'Tracking Value' and 'Tracking Category'. These values will be used by Google Analytics to track the number of times the document is downloaded.
Basically right now if I add 'THIS_VALUE' to the ID box when creating a link then the code would come out like this:
<a href="#" Id="THIS_VALUE"> Link name </a>
I want to add the two new fields:
So that if a user put in Tracking Category="This_category" and Tracking Value="This_value"
Then the final code would create the Google Analytics code automatically and put in in an onclick event so the actual code would look like this:
<a href="#" onClick="[url removed, login to view](['_trackEvent', 'This_category', 'Play', 'This_value']);"> Link name </a>
[url removed, login to view]
click on the link tool and then click on the advanced tab and here you will see where I want to add the Tracking Category and Tracking Value fields.
For final delivery this function will need to be working on my site and I will need a basic description of what was changed so that I can repeat the process later.
Please let me know if there are any questions.