Ah, yes! Thank you so much. That solved it!
I just can’t get it to work. Is my code ok?
function my_custom_attr(){
?>
<script>
jQuery(window).load(function(){
jQuery('.video a').attr('onClick','ga(‘send’, ‘event’, ‘TSM downloads’, ‘download’, ‘promo’);');
jQuery('.videor a').attr('onClick','ga(‘send’, ‘event’, ‘TSM Downloads’, ‘download’, ‘reportaza’);');
});
</script>
<?php
}
add_action('wp_footer', 'my_custom_attr');
Again, thank you for your help.
Thank you for a fast response. How about multiple buttons with different code? Do I add just another instance of the code you provided?
I also tried to put the code in the code box but it also does not work. Any advice?
Works like a charm! Thank you for a fast response! Have a great day.
Thank you very much! Got it done ;)