Highlighted

IMPORTANT!! Can we change utag_data name? how?

Rookie Contributor

Can we change utag_data name? How?

 

thanks

3 REPLIES 3
Highlighted

IMPORTANT!! Can we change utag_data name? how?

Tealium Employee
Hi @evelin

Yes, you can set a different data object name in the publish settings for each profile. Please see here for details: https://community.tealiumiq.com/t5/Tealium-iQ/Publish-Configurations/ta-p/13632

The field you want is "Page Data Object".
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.
Highlighted

IMPORTANT!! Can we change utag_data name? how?

Tealium Employee
I meant to add... you could also add a JavaScript extension scoped to pre-loader with the following contents:

window.utag_data = <name of your data object here>;

e.g. assuming your data object is called "dataLayer":

window.utag_data = dataLayer;

This would create the utag_data object for you, and it would be a reference to your custom data object. If you went with this approach, you wouldn't need to change the publish settings, but at the cost of having 1 extra extension.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.
Highlighted

IMPORTANT!! Can we change utag_data name? how?

Rookie Contributor

Thanks you so much!