Analytics Universal and Events Tagging in Tealium

Silver Contributor
Silver Contributor

Can someone show me how to insert the utag.link into the utag_data? I'm confused if the variables for the events just get added under the utag_data or if I need to create another layer inside the utag_dat for the utag.link().

 

Thanks!

6 REPLIES 6

Analytics Universal and Events Tagging in Tealium

Employee Emeritus

@aidin_belganeh

utag_data is the JSON object used for the initial page view.  When utag.js is a JavaScript libarary and when loaded, it will look for utag_data so it knows data about the current page being viewed.

 

utag.link and utag.view are functions withing utag.js and each of them require a JSON object to be passed in.  You will create a new JSON object for each new call to utag.link or utag.view.

 

For example, if you were doing email signup you would have a call like this:

utag.link({
    "customer_email"  : "johnsmith@example.com",
    "event_name"      : "email_signup"
});

Does this answer your question?

 

Brian

Analytics Universal and Events Tagging in Tealium

Silver Contributor
Silver Contributor

It definitely does- thanks a lot!!

where do I implement this code within the utag.ja? Does it go after all the utag_data variables?

Analytics Universal and Events Tagging in Tealium

Employee Emeritus

@aidin_belganeh

For a moment, remove Tealium from your thinking.  What are you trying to accomplish?

For example in the email example I have above I am looking for something like the following from you.

When the user enters their email address into the email signup form in the footer of the page and then they click submit, I would like to send the email address to Site Catalyst as sprop21 and I would also like to send the data to xyz vendor so I can email them.

 

If you were to tell me this, I would respond with the following:

At somepoint your web developer is going to verify that a valid email address has been entered and then they are going to send back some sort of JavaScript success event.  As part of the JavaScript event, you would want to add the utag.link call.  The call will "wake up" Tealium and let us know it is time to start sending data to your tagging vendors like site catalyst and xyz vendor. So in this case utag.link does not belong in utag.js, it belongs in the success event of the button click.


We could go on for a while discussing many many possibilites for the user of utag.link and utag.view.  Here I have only described one.

 

Brian

Analytics Universal and Events Tagging in Tealium

Silver Contributor
Silver Contributor

Got it!

I am using Google Analytics Universal and trying to tag bunch of events on multiple pages of our site. For example one of the events is the "Sign Up" button for one of the electricity plans on the electricity plans page. I want to see how many people (from what channel, for what plan and etc.) clicked on the Sign Up button and send that data to my Google Analytics account. 

Analytics Universal and Events Tagging in Tealium

Analytics Universal and Events Tagging in Tealium

Silver Contributor
Silver Contributor

These are great- thanks!

 

Public