outbound links tracking

#184879
  • Resolved Arnas
    Rank Math free

    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)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay.

    Unfortunately, Rank Math does not offer the Event Tracking feature. We only have an option to insert the Analytics.

    However, feel free to use a custom solution and set up the Event Tracking on your own end.

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Arnas
    Rank Math free

    Understood, thank you!

    Hello,

    You’re very welcome and we are glad that we have addressed your concern.

    If you have any other concerns, please don’t hesitate to contact us anytime by creating a new ticket to assist you further with anything else.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘outbound links tracking’ is closed to new replies.