Avatar of Anthony Pangilinan
Anthony Pangilinan
Flag for United States of America asked on

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

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',
});

Open in new window


Or is there a syntax for sending multiple events in a single call?
Web DevelopmentGoogleJavaScriptAnalytics

Avatar of undefined
Last Comment
Anthony Pangilinan

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
David Favor

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Anthony Pangilinan

ASKER
Thanks for the info! This ended up not being necessary so I just passed multiple events.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy