I’m pretty sure this isn’t a question for this forum. Use Google, or check the Google Analytics-forum, although I’m pretty sure Analytics isn’t built for this.
I think I was misunderstood.
since I installed the plugin I don’t get outbound links as an event.
I’d like to ask the same question, need to use this function:
<script>
/**
* Function that tracks a click on an outbound link in Analytics.
* This function takes a valid URL string as an argument, and uses that URL string
* as the event label. Setting the transport method to 'beacon' lets the hit be sent
* using 'navigator.sendBeacon' in browser that support it.
*/
var trackOutboundLink = function(url) {
ga('send', 'event', 'outbound', 'click', url, {
'transport': 'beacon',
'hitCallback': function(){document.location = url;}
});
}
</script>
https://support.google.com/analytics/answer/1136920
Hi
I just test CAOS and it’s a good plugin but yes it missing some G.A. custom stuff like events trackings.
we have some alernative:
https://fr.wordpress.org/plugins/wp-google-analytics-events/
https://fr.wordpress.org/plugins/google-analytics-track-outbound-links/
-
This reply was modified 8 years, 6 months ago by
pako69.