|
|
|
|
|
by lpsz
3996 days ago
|
|
Why not just use an event handler which sends the event to GA, and after that, follows your link? They provide a callback and everything... var outboundLink = function(url) {
ga('send', 'event', 'button', 'click', {'hitCallback':
function () {
document.location = url;
}
});
}
<a href="#" onclick="outboundLink('https://www.foo.com'); return false;">Foo</a>
See: https://developers.google.com/analytics/devguides/collection... |
|