Edit JCK plugin to allow an 'onclick' value to be added
$30-250 USD
Paid on delivery
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:
Tracking Category:
Tracking Value:
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>
The JCK Editor is written in Javascript. To see specifically the part that needs to be changed go to this link:
[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.
Project ID: #1100284
About the project
4 freelancers are bidding on average $167 for this job
Hello I can help you, i have 5 years experience with joomla. I can do this job for your. Ready to start. Regards,