Onclick event tracking is not working

Hi ? I am using following function for onclik event tracking but the event tracking information is not being displayed on Matomo server. Please help me to fix the problem. The function is being called successfully. I have debugged it.

function pushToPaqService(name,value){
_paq.push([‘trackEvent’, "TFields: "+name,"Values: "+value,9]);
}