I've been attempting to pick up a bit of Javascript for analytics since starting to use Google Tag Manager. Currently, I'd like to track exit links and am using the following custom html snippet:
<script type="text/javascript">
$(document).ready(function(){
$('.app-cta a').onClick=_gaq.push(['_trackEvent', 'App', 'Click', 'iOS']);
});
</script>
The firing rules are:
{{event}} equals GAevent
I then tried a firing rule:
{{url}} matches RegEx .*
No luck. Nothing being picked up in Google Analytics nor in HTTPfox.
I'm still getting my head around Google Tag Manager.
Can anyone see what I'm doing wrong here?