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....