Reply
Highlighted
Visitor
Posts: 2
Registered: ‎02-02-2018

Adding values to utag_data from angular controller

[ Edited ]

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?

Reply
0 Kudos
VIP
Posts: 181
Registered: ‎01-04-2016

Re: Adding values to utag_data from angular controller

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'
Visitor
Posts: 2
Registered: ‎02-02-2018

Re: Adding values to utag_data from angular controller

[ Edited ]

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 .Screen Shot 2018-02-08 at 15.48.46.png

I am on right track, doing async calls on single page 

Reply
0 Kudos