sitecore-xdb

How can I remove duplicated page events in Sitecore 8.1?

醉酒当歌 提交于 2019-12-23 20:26:57
问题 I have a processor in the <registerPageEvent> pipeline that checks whether an event is duplicated and removes it. It works well on 7.2, but I have to upgrade to 8.1 Update 3 and I can't find a way to remove an already added page event. Is this possible and how can I do that? Piece of code from 7.2: Tracker.Visitor.DataSet.PageEvents.Rows.RemoveAt(Tracker.Visitor.DataSet.PageEvents.Count - 1); 回答1: You cannot remove events via the API starting from Sitecore 7.5. (The only way around would be

Can I still access a sitecore contact facet once session is flushed?

半城伤御伤魂 提交于 2019-12-04 04:07:11
问题 I'm hoping I've not gotten the wrong end of the stick here (as always the sitecore documentation is woeful!) I wanted a way to store information against a visitor, I'm reasonably new to sitecore, but the contact facets seemed the idealsolution, pretty much implemented word for word from the link above, until it hit production I was quite pleased with it. When I stored information it persisted, I could read it: public IMpmVisitorFacet GetMpmVisitorFacet() { return _contact.GetFacet