Target cannot retrieve mbox parameter value that I am passing to qualify for Audience

Avatar

Avatar

christammm

Avatar

christammm

christammm

22-04-2020

I want users to be able to experience an activity on the follow conditions:

- If this is not their first session on the site

- If they have items in their cart

 

To check if they have items in their cart, I've wrote a trackEvent code that will fire once the quantity element is present on the page. 

function paramQuantityLoop(){
        var bagQuantityLooper = setInterval(function(){
             if(document.querySelector('.total-quantity') && document.querySelector('.total-quantity').innerText != ""){
                     adobe.target.trackEvent({
                           "mbox": "customTestMbox",
                           "params": {
                                 "itemsInBag": parseInt(document.querySelector('.total-quantity').innerText),
                            } });
                  clearInterval(bagQuantityLooper);
                }
         },1000);
}
paramQuantityLoop();

 

The parameter is successfully passed when i use the debugger tool in the console:

christammm_4-1587567340821.png

 

 

In my audience configuration, the mbox parameter is available to use as a condition to qualify for the audience.

christammm_0-1587566681767.png

 

However, I haven't been able to successfully qualify for my audience yet. At one point I event wrote a simple profile script in an attempt to retrieve the mbox parameter.

christammm_1-1587566862197.png


However, a quick glance at the response tokens reveals that even my profile script is having issues retrieving the mbox parameter.

christammm_3-1587567094812.png

 

I've been stuck on this for the past day. I've validated that the isFirstSession profile script is functioning properly, so currently the biggest obstacle is trying to properly pass the itemsInBag parameter. Any ideas or advice?

Accepted Solutions (0)

Answers (0)