Edit JCK plugin to allow an 'onclick' value to be added

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.

Skills: Javascript, Joomla, PHP

See more: jck editor onclick, jck plugin, my name editor, javascript go to, javascript edit code, i want an editor, id analytics, google play code, jck onclick, Value, name to be changed, javascript to c++, edit so, joomla edit category, php google play, create javascript tracking code, push look, javascript click event, edit code php, push google, php edit code, plugin google, add tracking code joomla, delivery plugin, google analytics event tracking php

About the Employer:
( 366 reviews ) Columbus, United States

Project ID: #1100284

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,

$120 USD in 2 days
(83 Reviews)

Hi, I'm expert on joomla please check the sites that I'm going to send you on the PM

$240 USD in 4 days
(25 Reviews)

Hello Please check PM. thanks

$220 USD in 5 days
(8 Reviews)

I am specialized on Joomla, custom modules and customizing core.

$89 USD in 3 days
(0 Reviews)