I have no idea of how can I do this, I am searching for few days now to find out how to add an onClick action to 2 <a>
tags in a website.
I have to do this for someone who asked me. He wants to check how many times the <a>
tags were clicked. Some kind of traffic tracking.
I searching through the php files and I could not find an id which is the container where the a tag is.
Any ideas how can I add the following code to the onClick event?
onClick="_gaq.push([ '_trackEvent', 'Downloads', 'Downloads Android'])"
This is what I have in my wordpress related to those 2 links:
[vc_row_inner][vc_column_inner width="1/2"][vc_single_image image="2051" alignment="center" border_color="grey" img_link_target="_blank" img_size="337x100" img_link="https://itunes.apple.com/ro/app/printie/id907472105?mt=8"][/vc_column_inner]
[vc_column_inner width="1/2"][vc_single_image image="2053" alignment="center" border_color="grey" img_link_target="_blank" img_link="https://play.google.com/store/apps/details?id=ro.printie.android&hl=en" img_size="306x100"][/vc_column_inner][/vc_row_inner]