ga.js has a queue for posting events asynchronously (see below). Does the new analytics.js have something similar? It looks like there simply is no need for a queue (presumably the new analytics functions just post to a queue automatically.
_gaq.push(['_trackEvent', 'SubscriptionPlanBtn', 'Click','Success']);
alert ('suucess');
The Google documentation shows _gaq.push (...)
replaced by ga(...)
(see screenshot below) so I assume that ga()
is just "already" asynchronous (or submitting to a queue). But I wanted to confirm this