sending Google Analytics Transactions with utag.link

Bronze Contributor
Bronze Contributor

Hi,

 

our checkout process works as a single page app. After a certrain step and button click I want to fire a transaction through a utag.link() call but it doesnt work. It works fine for other Tags which have the same load rules.

 

The transaction works perfectly fine if i send it with utag.view() so there shouldn't be an issue with the data layer or any other configuration (order id is mapped).

 

For enhanced ecommerce I can use the enh_action variable and mapping so that tealium automatically sends the information. This is what I use for checkout steps for instance where I get an event through the utag.link call.

Is there any way to send a transaction to Google Analytics with utag.link without having to configure event category or event action?

3 REPLIES 3

sending Google Analytics Transactions with utag.link

Tealium Employee

Hi @HenningM,

 

If you’re firing a utag.link(), Google requires the eventAction, eventLabel, and eventCategory variables to be defined and populated as Google views this as an event. If you use utag.view() instead, you do not need all three of these categories.

 

Thank you,
Shelli White

sending Google Analytics Transactions with utag.link

Employee Emeritus

To piggyback off a little bit of what Shelli mentioned, the GUA template is specifically designed to only send transactional network requests on a pageview call. This means that all utag.link() calls triggered will only fire event specific tracking within GUA. The utag.view() call will allow the template to execute the transactional code you are looking for. You could, theoretically, always update the template to trigger the transactional functionality off of a utag.link event, but that could inherently create other issues on other page events. I would recommend leveraging utag.view(). If you do have a specific reason to leverage utag.link then you should reach out to your account manager and create a ticket so that you can work with an engineer on making these updates.

 

Hope that helps!

 

Chris

sending Google Analytics Transactions with utag.link

Bronze Contributor
Bronze Contributor

Thanks for the answer. I will try to leverage the utag.view() call to send the transaction.

Public