How to pass dynamic parameters and values to mboxes created by TNT Ext?

Gold Contributor
Gold Contributor

I have created certain no of mboxes on my page via Tealium and I would like to pass specific dynamic parameters with values to each mbox. How to do so? I knew that Static Param field is only for hard-coded values.

8 REPLIES 8

How to pass dynamic parameters and values to mboxes created by TNT Ext?

Tealium Employee

@DaveCHChan

 

So what you can do, is use the mappings on the Adobe Target (Async) tag, and that will allow dynamic paramters to be sent, just like the static parameters are.

 

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

How to pass dynamic parameters and values to mboxes created by TNT Ext?

Gold Contributor
Gold Contributor

Thanks for reply!

 

Since I am quite new on Tealium, could you mind showing me your suggestion in details?

 

Let's say I would like to pass "custid=xxxxxx" to a mbox as parameter. How to do it step by step?

 

How to pass dynamic parameters and values to mboxes created by TNT Ext?

Tealium Employee

@DaveCHChan

 

Here is a community article that explains nicely how to add a mapping:

 

https://community.tealiumiq.com/t5/Tealium-iQ/Adding-a-User-Defined-Destination-Mapping-to-a-Tag/ta-...

 

The example they use is the DoubleClick Tag, but this can be applied to Target tag as well.

 

TargetMapping.png

 

Above is an example of the mapping.

 

This is used in combination with the "Test and Target Content Modification" extension.

 

mbox.png

 

 

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

How to pass dynamic parameters and values to mboxes created by TNT Ext?

Gold Contributor
Gold Contributor

Hi,

 

/t5/image/serverpage/image-id/875i31AB64FDBDD7FE68/image-size/original?v=v2&px=-1

 

 

May I know what does Destination mean on above screen?

 

In my case, if custID is in Data Source e.g. a UDO then what would be the Destination? How to apply it as mbox parameter?

 

Thanks!

How to pass dynamic parameters and values to mboxes created by TNT Ext?

Tealium Employee

@DaveCHChan

 

Destination is the name that you want to send across.

So in the example Page Name (js) is taken from the UDO (page_name) and sent across as u1.

 

For what you would like to achieve you would need source to be custId (js) (As in your data source) and the destination would also be custId.

 

2016-09-01_1457.png

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

How to pass dynamic parameters and values to mboxes created by TNT Ext?

Gold Contributor
Gold Contributor

Thanks for your prompt reply!

 

Besides data mappings, what else should I set? E.g. At Tnt Ext, could Static Params leave empty?

How to pass dynamic parameters and values to mboxes created by TNT Ext?

Tealium Employee

@DaveCHChan

 

That should be it. I would however recommend the following reading:

 

https://community.tealiumiq.com/t5/Tags/SERIES-Adobe-Test-amp-Target/ta-p/13358

https://community.tealiumiq.com/t5/Tealium-iQ/Flicker-Free-Test-amp-Target/ta-p/13360

https://community.tealiumiq.com/t5/Tags/Test-amp-Target-Content-Modification-Extension/ta-p/13362

 

Adrian

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

How to pass dynamic parameters and values to mboxes created by TNT Ext?

Gold Contributor
Gold Contributor

Thanks! I've got my answer.

 

Btw, I have another message asking how to create / define mbox on event like mouse click, mouse over, document.ready() etc? Or run script like mboxcreate / mboxdefine when visitors trigger some event on my page?

 

Let me provide more background info related to the above questions. Actually, I have 30+ menu items on a page and each of them associate with a promotion box with a banner. I would like to trigger a mbox over there on every visitor's mouse over on each menu item. Because if I create 30+ mboxes at once on page load, the page loading speed would be very low. That's why I would like trying mouse over event handling to trigger each mbox creation.

 

Hope you could give me advise.

Public