accessing parameters sent with mboxUpdate in an offer

Avatar

Avatar
Validate 1
Level 1
bani_k
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
bani_k
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
bani_k
Level 1

15-10-2015

Hello, 

I have an mboxDefine() and after a certain condition i call the mboxUpdate() and also send some parameters along with. 

These parameters are seen in the network call as query parameters and also available in the associated parameter list of the corresponding location in test and target.

However, when I try to access these parameters in the offer itself through mboxCurrent.getParameters(), only the default parameters are available (browser width, screen height etc) and  not the custom params that I passed.

I have tried a bunch of things but so far have not been able to access the parameters in the offer itself. Any pointers will be helpful. Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
chongkan01
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Affirm 3
Affirm 1
View profile

Avatar
Validate 1
Level 1
chongkan01
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Affirm 3
Affirm 1
View profile
chongkan01
Level 1

15-10-2015

Can you try the following? 

- When saving the value with the mboxUpdate call, use: 

mboxDefine('myMbox'); mboxUpdate('myMbox', 'profile.myCustomValue='+myCustomValue);

- When reading the data in the offer, use:

<script> window.myCustomValue = profile.get('myCustomValue'); ... ... ... </script>

Answers (0)