Link to home
Start Free TrialLog in
Avatar of Anthony Pangilinan
Anthony PangilinanFlag 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?
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Anthony Pangilinan

ASKER

Thanks for the info! This ended up not being necessary so I just passed multiple events.