Expand my Community achievements bar.

JOIN US Next Wednesday, 12/6/23 @ 8am PT for the next Community Q&A Coffee Break! Bring your Machine Learning, AI Reporting & Analysis Questions to the chat. Experts Brent Kostak, Cristinel Anastasoaie, & Drew Burns of the Adobe Target Product Team will be providing deep insights and useful tips

Updating Global Mbox Variables


Level 2


I am passing some parameters to global mbox using DTM ( i created a data element , all the data elements are populated using data layer values , and also the data layer variables will be populated with values only if visitor login , else all the variables will be blank )

So , when the page loads , the target call is happening and all the global mbox parameters are blank which is fine , however if the visitor login then i need to update the global mbox parameters with the values .  I understand the global mbox parameters needs to be updated before the target call , but in my case i have to use data layer values to update global mbox parameters , but the data layer values will be available on DOM load , however my target call is happening before that and again blank values are going to global mbox.

Please help me to acheive my task.



1 Reply


Level 1

In dtm can u add a page load rule, on page load write a non sequential js. Get param names  from global mappings(the parameters in Adobe target tool in dtm) and get their values.

Then do mbox upate. apply(globalmboxname, parans) . this will update ur global mbox. then callmboxupdate method. Please note this is for mbox js and may hamper ur performance a bit. Check out other feasible options from other forum members.