Reputation: 1788
I'm trying to setup an analytics event that happens on page load which I am firing via window.onload if there is no other js on the page or via $(document).ready() if jQuery is loaded.
The analytics loads and works fine and is using analytics.js (not ga.js). When I try to send events back to analytics, I use this command
ga('send', 'event', {'hitType': 'event',
'page': '/checkout/',
'eventCategory': 'Forms',
'eventAction': 'formload',
'eventLabel': 'Loaded checkout form correctly'});
When I look on the analytics dashboard it tells me that 2 of my visits sent events, but then all of the other events stats are 0. So in essence I am getting nothing logged.
Please help....
Upvotes: 1
Views: 523
Reputation: 316
Your code is working fine for me. I assume by dashboard you are referring to the real-time one? If it's showing up in there fine, including the dimensions you are passing, then you are all good.
I'd say give it a couple of days, GA Universal processing is quite slow.
Upvotes: 1