Highlighted

Multiple Events. Should i use two utag.link?

Rookie Contributor

Hello,
I am setting up coremetrics.

In my registration process, when the registration is successful,
I want to trigger a registration as well as a conversion event tag. As of now, both are mapped to be triggered based on the value of event_type:

The conversion is launched when i have the value CONVERSION
The registration when the value is REGISTRATION

Can i pass multiple values in my event_type?
i mean something like event_type=['CONVERSION','REGISTRATION']
would this work at all ?

Maybe it is best to throw two separate utag.link()?
one set for the conversion and one for the registration, but they will be thrown both at the same time, on the same click.

Thanks for feedback.

3 REPLIES 3
Highlighted

Multiple Events. Should i use two utag.link?

Employee Emeritus

Hi Philippe,

I think I remember you from training in London no?

I would call utag.link() twice with the 'event_type' set to different values in each call:

utag.link({event_type:'CONVERSION'});
utag.link({event_type:'REGISTRATION'});

That way - you know all tags are going to support it (e.g. GA can only handle one event at a time even though things like SiteCat can trigger multiple 'events' in the same call).

Sometimes, it makes sense to have a single call and two separate data sources but that's usually an exception for events - I think you're best bet is two calls (if you passed in an array - you'll have a bit of fun trying to work with that in the vendor tag unless it's a pretty powerful tag).

In any case, I'd always strive to tag things up in a vendor agnostic way so everything can handle it nicely.

Hope this helps!

Cheers,

Roshan

Highlighted

Multiple Events. Should i use two utag.link?

Rookie Contributor
I was indeed in london :) was a great class where i learned a lot !
Highlighted

Multiple Events. Should i use two utag.link?

Employee Emeritus
I thought it was you - glad you liked it!