I’m trying to get both a _trackEvent push command and a _link to another domain command to work on a single quote button on my site, but am currently coming up with noting.
Here’s the code:
<a href="URL"
target="_blank"
onclick="
_gaq.push(['_trackEvent', 'Quotes', 'Click', 'QuoteImage']);
_gaq.push(['_link', 'URL']);
return false;
">button</a>
If I remove the _link push event from the code, the _trackEvent works, but I’m unable to get both to work at the same time. Any ideas?
You should read this doc : http://support.google.com/analytics/bin/answer.py?hl=en&answer=1136920
Try something like :
and