- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
10-29-2015 09:39 AM
I'd like to merge data from another call made by a targeting tool and send it to Adobe in the main call than through a second call, on the page.
As of now, I cancel only the adobe call(extension scoped to Adobe and return false;) and let the tool call utag.view(with just it's own extra variables).
As, the utag.view from the targeting tool, doesn't have all variables in utag_data - just it's own variables. So, Adobe call is incomplete.
How can I merge utag_data from both and do a single Adobe call?
Solved! Go to Solution.
11-02-2015 02:28 PM
Hi Samrat,
The following code will do this for you. Be aware that this code will merge the utag_data on ALL page views, so you may wish to wrap it inside an "if" statement to ensure that you only merge data for specific view events.
if (a === "view") { for (prop in utag_data) { if (utag_data.hasOwnProperty(prop) && !b[prop]) { b[prop] = utag_data[prop]; } } }
11-02-2015 02:31 PM
05-22-2016 07:36 AM
05-22-2016 11:45 AM
Copyright All Rights Reserved © 2008-2023