- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
02-07-2018 03:21 AM - edited 02-07-2018 03:25 AM
Hello i am trying to add data from angular controller . This utag_data is in my html view.
var utag_data = { }
next i have angular conttroler call in same view
<div ng-controller="tealiumTagManager-controller"></div>
in that controller js file doing something like this
$.extend(utag_data, data);
When i console.log(utag_data) before tealium code in my view, getting wanted values in this object
<script type="text/javascript"> (function(a,b,c,d){ a='//tags.tiqcdn.com/utag/; 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>
But in UDO debugger values are not shown. Any idea what i am doing wrong?
02-07-2018 03:22 PM
Hi @propulsion is the utag shown below complete? Usually after the address "
tags.tiqcdn.com/utag
there is more info such as your account name and TiQ profile.
Such as
a='//tags.tiqcdn.com/utag/[account]/[profile]/[environment]/utag.js'
02-08-2018 06:51 AM - last edited on 02-09-2018 02:35 PM by kathleen_jo
It's hidden due security issue @mitchellt. So i found that angular controller is loaded after script, so i can't add data after that, trying with utag.link(), Got in my UDO debugger some values .
I am on right track, doing async calls on single page
Copyright All Rights Reserved © 2008-2023