- TLC Home Home
- Discussions & Ideas Discussions & Ideas
- Product Guides Product Guides
- Knowledge Base Knowledge Base
- Developer Docs Developer Docs
- Education Education
- Blog TLC Blog
- Support Desk Support Desk
Hi
Is there a way to retrieve the names of libraries that have been loaded by a profile in Javascript? We would like to expose this in a data layer attribute for easier testing / debugging.
Many thanks for your ideas
Solved! Go to Solution.
04-06-2018 07:41 AM - last edited on 04-06-2018 07:58 AM by kathleen_jo
I'm afraid it's not possible, @jmbolfing, - the publish engine treats inherited objects in the same way as it would have if they were created within the profile itself. There's nothing in the published utag.js that makes mention of any source libraries.
One possible workaround would be to create an All Tags extension in each profile/library which runs the following:
b.library_list = (b.library_list || "") + "main" + ";"
Changing the "main" to the name of the current library.. Which would then create a UDO variable that would end up containing a semi-colon delimited list of all the libraries that were inherited.
04-10-2018 07:55 AM - edited 04-10-2018 07:56 AM
Copyright All Rights Reserved © 2008-2021