troubleshooting Question

Is it possible to send multiple events in a single call to Universal Analytics?

Avatar of Anthony Pangilinan
Anthony PangilinanFlag for United States of America asked on
Web DevelopmentGoogleJavaScriptAnalytics
2 Comments1 Solution187 ViewsLast Modified:
I want to register multiple events in Universal Analytics. Can this only be done in multiple calls, like so?

ga('send', 'event1', {
    eventCategory: 'category1',
    eventAction: 'click',
});

ga('send', 'event2', {
    eventCategory: 'category2',
    eventAction: 'click',
});

Or is there a syntax for sending multiple events in a single call?
ASKER CERTIFIED SOLUTION
David Favor
Fractional CTO
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros