We are trying to setup pattern matching personalization using sitecore XDB. We see anonymous contact being tracked into analytics database. I am trying to achieve below:
- If pattern card A matches, we see pattern A banner.
- If pattern card B matches, we see pattern B banner.
I tried to use "pattern match for current visit" rule, this one only works on the open browser session.When I close the browser and open it back, i see same browser cookie but pattern rule does not work. When I look into the contacts in MongoDB, it is not storing any cookie.
I also tried using "Where the current contact matched" rule, but this one does not even work.
Do I need to write any custom code to get this working? Does this work based on the cookie or browser active session?