Datalayer variables definition

bafra
Bronze Contributor
Bronze Contributor bafra

I'd like to export my datalyer variables definition from one profiles and import in other one. Is it possible?

Thanks

2 REPLIES 2

Datalayer variables definition

esteban_palmeir
Bronze Contributor
Bronze Contributor esteban_palmeir

Hi Bafra,

You can use custom javascript to get variables definition from a profile and copy it to another. You just need to check this global variable in Tealium IQ:

utui.data.define

For example, you can create a bookmark like this:

javascript:(function(){try{var a=utui.data.define,b={js:"UDO Variable",js_page:"JavaScript Variable",meta:"Meta Data Element",cp:"First Party Cookie",qp:"Querystring Parameter"},c="";for(i in a)c+=a[i].name+',"'+a[i].type.replace(/^(js|js_page|meta|cp|qp)$/g,a=>b[a])+'","'+a[i].title+'","'+a[i].description+'"\n';console.log(c),alert("\n1. Copy variables from Console\n2. Go to 'Data Layer -> Bulk Import From CSV...' to import to other profile")}catch(a){alert("Something was wrong :( "+a)}})();

Then, copy variables from console and paste it in Bulk Import From CSV.

Screenshot 2019-11-04 at 16.36.00.png

Datalayer variables definition

bafra
Bronze Contributor
Bronze Contributor bafra

thank you for your suggestion.

I'll proceed as suggested

Franco