Skip to main content
Feb 22, 2017 6:37 PM UTC
Solved

AT.js - How can I get parameter value on mbox

We use AT.js and trying to retrieve the value of certain parameter stored in global mbox via concurrent campaign.

It seems mbox.js has a method for that, but this page says it does not apply AT.js.

https://marketing.adobe.com/resources/help/en_US/target/target/r_variables_profiles_parameters_methods.html

 

Is there any method or workaround with AT.js to do this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ParitMittal
ParitMittalAccepted solution
Level 10
Feb 24, 2017 4:31 AM UTC

Hi ,

If you are using profile scripts to retrieve the value of certain parameter stored in global mbox via concurrent campaign then the syntax to retrieve the value would be : mbox.param('paramName')   however if you are retrieving the value of parameter inside an offer then you have to use the syntax : ${mbox.param('paramName')}

Thanks & Regards

Parit Mittal

3 replies

ParitMittal
ParitMittalAccepted solution
Level 10
Feb 24, 2017 4:31 AM UTC

Hi ,

If you are using profile scripts to retrieve the value of certain parameter stored in global mbox via concurrent campaign then the syntax to retrieve the value would be : mbox.param('paramName')   however if you are retrieving the value of parameter inside an offer then you have to use the syntax : ${mbox.param('paramName')}

Thanks & Regards

Parit Mittal

Translate
Adobe Employee
Feb 27, 2017 4:04 PM UTC

Hi nfujik,

If I'm understanding you correctly you are passing a parameter into the Target global mbox request somewhere (page A). And then somewhere else (page B) you'd like to read the value of the parameter for the visitor. If this is correct the method you referring to for mbox.js does NOT handle that. It only returns the parameters sent on the same page.

Translate
nfujikAuthor
Feb 27, 2017 5:25 PM UTC

Thank you for reply.

Profile script way worked. With AT.js, simply calling ${profile.paramName} got me its value.

 

Both campaign is on same page. But it is very helpful info that it won't work in different page.

 

Thanks!

Translate