- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
Hi guys, I have beginner level question regarding implementing tealium code and data layer
I have a scenario where something similar to image below was implemented on the site by the previous developer of the site. The "'https://FileURL/tmsloader.min.js" file is hosted elsewhere on the site and contains a script that has utag.js code in it.
I am not that familiar with data layer push method and wish to make changes by removing the data layer declaration above and replacing with the standard declaration method like the image below. I want to add properties to the data layer object. However, I was asked to keep the TMS loader code as it is.
Question : Will there be any problem, with the approach above ?
My intention is to follow the data layer variables decalration method recommended by Tealium, and one which fits my understanding.
Thanks for comments!
I do NOT have an option to replace the TMS loader code above , directly with the utag.js from the code center like so:
<!-- Loading script asynchronously -->
<script type="text/javascript">
(function(a,b,c,d){
a='//tags.tiqcdn.com/utag/account name/profile/prod/utag.js';
b=document;c='script';d=b.createElement(c);d.src=a;d.type='text/java'+c;d.async=true;
a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);
})();
</script>
Solved! Go to Solution.
Copyright All Rights Reserved © 2008-2023