I suppose I have to paste the code you wrote inside a profile script.
Question now are:
Since I have only to read the cookie, I think I can remove the line:
// this will set cookie
Is this correct?
Also, what are exactly "product" and "zz"? It seems like I have to replace these.
Then, when creating the audience based on a visitor profile (so passing a value for the "equals" condition), which value should I pass, product or zz? If "product", why on the 'read the cookie' code I pass only "zz"?
I know this could be a little bit much but let me know for any question or clarification.
About last code you sent me, that will work only for apply/not apply the code inside the experiment. But a user will be bucketed in in any case as the cookie condition is not on the audiences, but only in the activity code (so that's not what I am looking for).
If we could find a way to add a cookie check in the targeting rules should be perfect.