Build audience based on click event
Hello Target Community,
i want to track a click event of an Element on my Page, if the element is clicked the user should be in a specific audience.
i tried this example
https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-14550
but changed the code to:
adobe.target.trackEvent({mbox: 'target-global-mbox', params: {'person': 'private'}})
in my profile script i try to read it out like this:
if (mbox.name == 'target-global-mbox') {
var x = mbox.param('person')
return x;
}
and try to add a audience based on that like this:

but the audience is not picking because the site is not changing. Am i missing something here?