I'm using MongoDB to track user preferences (custom facet) and it works fine if I first identify the user. However if I start a new session and save the current user preferences and just after identity the user (using the email address), those preferences are not being saved against the identified user. Any thoughts?
Example (working):
Example (not-working):
When using custom facets you have to make sure they are included in the contact merging process, otherwise when the user is identified the data will not get pulled across to the identified contact.
See this on the docs on how to implement a processor to add your custom facets into the merge process.