Highlighted

We have a variable from our main profile to be referred in the sub profile. Could you please provide the way to refer the same. I tried using the utag.data reference which did not work.

 
6 REPLIES 6
Highlighted

We have a variable from our main profile to be referred in the sub profile. Could you please provide the way to refer the same. I tried using the utag.data reference which did not work.

Tealium Employee
Hi, inheritance is a one way street. You can inherit Data Sources, Load Rules and Extensions from a library (assuming that is what you mean by sub-profile) and then use/refer to those inside the profile.
Highlighted

We have a variable from our main profile to be referred in the sub profile. Could you please provide the way to refer the same. I tried using the utag.data reference which did not work.

we currently do not use the libraries...for example, we have a profile "main" which used a variable "abPage"..and profile "data" loads the profile "main" using the Tealium profile loader...and just wanted to know as to how do we refer to "abPage" in "data",
Highlighted

We have a variable from our main profile to be referred in the sub profile. Could you please provide the way to refer the same. I tried using the utag.data reference which did not work.

Tealium Employee
Hi Sri, Have you tried b.abPage ? - all extensions are running in a closure scope like this: function(a,b) { // a === "view" or "link" // b === data layer }
Highlighted

We have a variable from our main profile to be referred in the sub profile. Could you please provide the way to refer the same. I tried using the utag.data reference which did not work.

yes Kevin, so tried..."b."...utag.data..."nk" our page data object....and then thought of pinging the tealium team
Highlighted

We have a variable from our main profile to be referred in the sub profile. Could you please provide the way to refer the same. I tried using the utag.data reference which did not work.

Tealium Employee
If you for example create an "all tags" scoped javascript extension inside your sub-loaded profile and put in the code: b.hello = "world"; + publish to e.g. dev or qa. When the utag.js file has the updated timestamp, locate the extension inside utag.js and put a breakpoint on that line inside the extension i.e. function(a,b) closure. - if you can't see the b.abPage data source when the breakpoint is active, then we might need to take a deeper look into it. You can email us at support-emea@tealium.com with page details / what to click on to see the abPage data source in question and we'll be happy to look into it for you.
Highlighted

We have a variable from our main profile to be referred in the sub profile. Could you please provide the way to refer the same. I tried using the utag.data reference which did not work.

thanks for this Kevin...