Highlighted

Is there a utag method for the SiteCatalyst Tag that is equivalent to s.t()?

Silver Contributor
Silver Contributor
In an Angular app using angular routing, the actual page only loads once. So, as routes move the app through different views SiteCatalyst page beacons need to be fired for each new view. With the s object, props can be set directly and then s.t() can be called to fire the beacon. I'm wondering if there is a mechanism in Tealium that will allow me to update the utag_data object and then fire a utag method that will pick up the utag changes and fire the SiteCatalyst Beacon.
6 REPLIES 6
Highlighted

Is there a utag method for the SiteCatalyst Tag that is equivalent to s.t()?

Employee Emeritus

Steve, you can call utag.view() to trigger a page view event, this will trigger s.t() on the SiteCatalyst tag. There is some documentation here: https://community.tealiumiq.com/t5/utag/utag-link-and-utag-view/ta-p/11888 In general, if you are updating the global utag_data object with new data, then you will want to call utag.view(utag_data) which will send the data object to the event. Alternatively, if you don't want to persist everything from the previous page view, then create a new data object for the event and call it like this utag.view({ data : "value" }).

Highlighted

Is there a utag method for the SiteCatalyst Tag that is equivalent to s.t()?

Silver Contributor
Silver Contributor
Thanks for the response. I tried that, but I did not see the SiteCatalyst call as a result of executing utag.view(utag_data).
Highlighted

Is there a utag method for the SiteCatalyst Tag that is equivalent to s.t()?

Employee Emeritus
That should be all you need. If it's not triggering SiteCatalyst, then you should put in a request to your account manager to get some help debugging it because it sounds like there is an issue specific to your pages.
Highlighted

Is there a utag method for the SiteCatalyst Tag that is equivalent to s.t()?

Silver Contributor
Silver Contributor
Doesn't the utag.view() trigger all the tags on that page? I only want the SiteCatalyst tag to be called (i.e. the equivalent of the SiteCatalyst s.t()).
Highlighted

Is there a utag method for the SiteCatalyst Tag that is equivalent to s.t()?

Employee Emeritus
Calling utag.view() will fire any tags with load rules that match the data you pass in. This will include any tags with the All Pages load rule. If you only want to fire SiteCatalyst and you don't want other tags to fire, you can still call s.t() directly, rather than calling utag.view(). Depending on how your profile is set up you might have a different name for the 's' object. You can see this on the SiteCatalyst tag, in the config panel on the left hand side, called "S-Object Name". If it's blank, then you should call s.() and if it has a different name then call that name, e.g. tealium_s.t()
Highlighted

Is there a utag method for the SiteCatalyst Tag that is equivalent to s.t()?

Silver Contributor
Silver Contributor
I know I can call s.t(). I have code already that is setting all of the s.props, s.eVars and s.events directly on the s object before I call s.t(). Do you know if there is anyway to update utag_data and then get Tealium to apply it's SiteCatalyst mappings to the s object before I call s.t()? Thanks for all your comments.