- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
I'd like to export my datalyer variables definition from one profiles and import in other one. Is it possible?
Thanks
Solved! Go to Solution.
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.
Copyright All Rights Reserved © 2008-2023