2

Does data that is added to an unidentified contact (and therefore saved in xDB) get restored upon future visits?

Currently working on a site that

a) has no forms

b) doesn't not currently have a need for identifying contacts.

I would like to store some information about previous visits in the Contact record for use on later visits. Do I need to do anything different given I'm never going to identify this contact?

  • 3
    As long as you have VisitorIdentificationToken added to your layout, enabled Analytics and xDB system will capture the visits. It works based on the cookie set SC_ANALYTICS_GLOBAL_COOKIE. As long as the cookie is alive on the client system, Sitecore can track visits across sessions. So, yes you can retrieve data added to unidentified contact in future visits. – phani Jan 11 '17 at 6:43
4

Anonymous visitor xDB data is stored according to the cookie guid that was placed on the visitors computer as SC_ANALYTICS_GLOBLE_COOKIE. As long as the user doesn't clear his cookies, subsequent visits/interactions will be tracked to that anonymous visitor.

In the event that the user does self identify in some capacity, running Tracker.Current.Session.Identify (identifier) will take the current anonymous visitor record and merge it into a Known visitor record that can be recalled using the Identify method.

At any point cookies are cleared before the Identify method can be executed, the visitor will recieve a new guid, and thus the old interactions tracked by the old cookie guid will no longer be associated to the new visitor guid. This means that those old interactions will not be merged to the known visitor contact when Identify () is ran. While these interactions are still in xDB and can be used for analytics, they are lost to being able to be associated to a known contact.

  • FWIW - I am NOT seeing the contact information get loaded when visiting the site after the session has expired. I do see my facet data in MongoDB after the session expires, but it is not restored. – Derek Dysart Jan 18 '17 at 5:53
  • This is a great explanation. – Dylan Young Apr 27 '17 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.