-
Hello,
I found this code for tracking outbound links click with GA :
var a = document.getElementsByTagName(‘a’);
for(i = 0; i < a.length; i++){
if (a[i].href.indexOf(location.host) == -1 && a[i].href.match(/^https:///i)){
a[i].onclick = function(){
_gaq.push([‘_trackEvent’, ‘outgoing_links’, this.href.replace(/^https:///i, ”)]);
}
}
}Where should I insert this code if I installed GA via RankMath?
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The ticket ‘outbound links tracking’ is closed to new replies.