I have a page in my site "x" that redirect to another site "y".
So I wanted to track that redirect traffic and send it to Google analytics,
by this code :
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
(function(url) {
gtag('event', 'y', {
'send_to': 'UA-xxxxxxxx-x',
'event_category': 'out',
'event_label': url,
'transport': 'beacon',
'event_callback': function(){document.location = url;}
});
})("<?php echo $url; ?>");
When I go to see the Events in Google analytics for "X" I found 5000 event sent.
when I go to see the Referral Traffic in Google analytics for "y" I see only count 2500 mean half the traffic.
These analytics has the same time zone and the date.
So what cause the problems that make double counting the Events?
entranceson site Y to get a clearer picture of what happens - Дмитро Булах