Hi, assuming I would like to get the following script in the HEAD tag of the site by publishing with Tealium:
I read this article https://community.tealiumiq.com/t5/Developers/Tealium-Custom-Container/m-p/1182 but unsure on how to add the script, as it mentions to not use script tag in the custom container section.
Could you point me how to I add the above script in the Tealium Custom Container JS section? Thanks
There are a couple of points you should think about.
1) Why does this need to be in the head tag?
2) Does the code need to load synchronous or is asynchronous sufficient?
3) By default, Tealium's utag.js will be at the top of the body tag, then usually script tags are added to the last script tag found (which is often in the head tag)
Check out these two articles and let us know if they help you out.
The only part that seems different is the data-set="1234" within the script tag. If this is a requirement, let me know I can look to see if how we can support this attribute.
I have a similar question, I need to use Tealium for apply a hotfix in the website. I was reading the documentation, and if I undestand good, I need to modify the template of the Custom Tag Container, Is there any other way to apply a hotfix without modifying Custom Tag template?
1) It needs to be in the HEAD tag because of performance. Scripts in HEAD tags will load / start before the BODY, so I would like to keep in that.
2)The code load synchronously on the page and it executes asynchronously
4)Ideally I 'd like to keep the script tag somehow and avoinding to write the script in the HEAD dynamically with an immediate JS function.
The data-set attribute is a requirement, as without it the script would not work.
Would you still reccomend to use a Generic Tag rather than a Customer Container?
Here are a few articles that talk about utag.sync.js