utag.cfg.path as a JS variable - but NOT utag.data['dom.domain'] because of special characters are not allowed.
Is there a way to repurpose all the data that is available under utag.data - e.g. meta and dom data?
Solved! Go to Solution.
The domain is a pre-declared variable so there is no need to re-declare it. If you are creating a load rule, mapping a data variable in a tag, or using an extension, you can simply type in "domain" in the drop down and it will automatically appear for use.
Please let me know if you are attempting to use domain somewhere else and I can give proper guidance.
Thanks @dan_george for your answer. I would like to use it in the extension. I wanted to picup a query parameter CID from the URL and save it in the variable. The extension I was thinking of using is the Set Data Value and Join Data Value.
If you are just attempting to pick up a querystring parameter out of the URL, you can just declare the QSP in the Data Layer tab:
That's it! And now it will be accessible through the rest of the UI.
If you plan to map it in a tag, or leverage within an extension, this is all that is required to reference it. Please let me know if this is the guidance you are looking for.
I have a related question, I would like to create a first-party cookie in Tealium that contains all the utm params. In the UI, I could not find a way to assign/concatenate multiple query parameter variables to do so. So I am planning to write an extension that takes in the dom.query_string and parses it out to store the output in a single udo.data variable. How do I refer to udo.data[dom.query_string] in extensions?
Hi @dgho3174 ,
You could use JoinDataValues extension to concantenate multiple paramters. Since it is a query sting paramter you can use the method suggested by @dan_george .
Once you have created a Query string paramter variable you can use it in the extension. Please Find the extension below.
You should create a UDO variable for the destination in JoinDataValue extension.
b['qp.utm_campaign] or utag_data['qp.utm_campaign']