GA Event tracking only works in external, target="_blank" links, not working in internal links nor mailto

StackOverflow https://stackoverflow.com/questions/19242593

Question

I'm implementing event tracking on my website and noticed it's only working in external, target blank links.

When I first put the code, 3 days ago, it worked on internal links and mailto as well. One day latter I decided to use a different set of values for Category, Action and Label and noticed GA stopped tracking internal links and mailto. Now I can only track external links, and it's been like this for the past 48 hours.

That's probably a noob problem, but I've searched everywhere and can't seem to find a similar issue.

I'll appreciate any help. I'm reproducing the tracking code I'm using here:

Mailto:

<a onclick="_gaq.push(['_trackEvent', 'Text', 'Feedback', 'Bottom']);" href="mailto:xxx@xxxx.com">

Internal link:

<a onclick="_gaq.push(['_trackEvent', 'Text', 'Museos', 'Bottom']);" href="/wp/?page_id=XXXX ">
Was it helpful?

Solution

it looks like both buttons are firing according to GA Debug:enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top