Getting access to cookies during relevance module inference engine

I am trying to use the inference engine to create my own rule to read a custom cookie that we build on our SPA frontend.

We have set up the cookie collector to look for this cookie. Then in the inference rule trying to use

$.request.getCookies();

However, we are noticing this is an empty map. Is this possible to do? Are there an examples that may point me in the right direction?

Hi @mkjp2011 ,

Configure Visitor Cookie Name Without Underscore

The Relevance module uses the cookie name _visitor by default. Unfortunately, the underscore can cause issues in some scenarios where an SPA frontend is used.

Could you please go through the below documentation once and please let us know if this is useful for this issue :