function googlead() { jQuery('a:contains("Chat Live")').click(function(){ga('send','event','link','click','chat live');}); jQuery('input[value="Send"]').click(function(){ga('send','event','link','click','chat send');}); } setTimeout(function(){googlead()},2000);