天道酬勤,学无止境

sitecore-xdb

How can I remove duplicated page events in Sitecore 8.1?

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);

2021-08-01 12:06:56    分类:问答    sitecore   sitecore8   sitecore-xdb

会话刷新后,我还可以访问 sitecore 联系人方面吗?(Can I still access a sitecore contact facet once session is flushed?)

问题 我希望我没有在这里弄错了(一如既往,sitecore 文档很糟糕!) 我想要一种针对访问者存储信息的方法,我对 sitecore 相当陌生,但联系方面似乎是理想的解决方案,几乎从上面的链接逐字执行,直到它投入生产我对它非常满意。 当我存储它持久的信息时,我可以阅读它: public IMpmVisitorFacet GetMpmVisitorFacet() { return _contact.GetFacet<IMpmVisitorFacet>(_MPMVisitorConfigName); } 并设置信息,一切似乎都很棒。 我还可以看到设置了 sitecore SC_ANALYTICS_GLOBAL_COOKIE ,一切看起来都很棒。 然后我做了一些更彻底的测试...... 问题似乎是数据不会持续很长时间。 如果我在 facet 中放入一些信息,它会停留一个小时左右(我可以关闭我的浏览器,查看其他网站,等等)并且我将能够访问它,但是在“时间”一切都会过去。 重新访问文档后(我有没有提到它们不是很好),我注意到我以前没有看到的一句话中有一个警告: 好吧,我可以创建另一个仅读取员工编号的 Web 表单页面。 这将告诉我联系人方面的数据至少存储在内存中。 但是永久存储呢? 等等,我以为这是永久存储?! 所以这个例子显示了一些读取“facet”的代码。 var contact =

2021-06-22 20:09:37    分类:技术分享    mongodb   sitecore   sitecore8   sitecore-xdb

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

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<IMpmVisitorFacet>(_MPMVisitorConfigName); } and set info and everything seemed great. I could also see the

2021-05-08 10:21:08    分类:问答    mongodb   sitecore   sitecore8   sitecore-xdb