0

I see a lot of examples around where people are using Tracker.CurrentVisit.Profiles in their code.

Those examples seem to be using older versions of Sitecore.

Does anyone know where that collection has migrated to in later versions of Sitecore (i.e. v8.2)?

  • Looking for this: Tracker.Current.Interaction.Profiles ? – Gatogordo Feb 20 '18 at 9:31
  • Or this? Tracker.Current.Contact.BehaviorProfiles? – Dmytro Shevchenko Feb 20 '18 at 9:33
  • Yeah, I've been able to "sniff-out" Tracker.Current.Contact.BehaviorProfiles.Profiles, but I'm nut not sure that I'm getting the same collection back that the examples I'm looking at use. – Josh Wheelock Feb 20 '18 at 9:40
  • @Gatogordo - I think your comment is the right one. Looks consistent with what Ian Graham has written in this post – Josh Wheelock Feb 20 '18 at 9:50
2

Considering that a Visitor became a Contact and a Visit is now called an Interaction I would assume you are looking for Tracker.Current.Interaction.Profiles.

As you mentioned, a bit more information in this post from Ian.

  • What is the difference between Interaction.Profiles and Contact.BehaviorProfiles? – Dmytro Shevchenko Feb 20 '18 at 10:50
  • The Interaction.Profiles is about the current interaction, the Contact.BehaviorProfiles is about the contact (can be multiple interactions). This is an assumption though - just as I assume the BehaviorProfiles comes from the BehaviorCache. – Gatogordo Feb 20 '18 at 11:06
  • One problem with the Tracker.Current.Interaction.Profiles is that it is not interable. – Josh Wheelock Feb 20 '18 at 15:09
  • It would be nice to get some official feedback from Sitecore, otherwise we're just guessing. – Josh Wheelock Feb 20 '18 at 15:09
  • You can always ask Support - but I'm rather sure about the assumptions made. – Gatogordo Feb 20 '18 at 15:12

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.