Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# JWT Token Get Expiry Timestamp
- .NET API CORS: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header.NET API
- C# Azure Table Storage QueryAsync, Paging and Filtering
- C# Use HttpClient to GET JSON from API endpoint
- C# Calculate Week Number from DateTime
- C# get results from Task.WhenAll
Archive
Meta
Tag Archives: xDB
Sitecore 9 Tracker.Current.Session.Identify is replaced with Tracker.Current.Session.IdentifyAs
In Sitecore 9, Sitecore have decided to change how you identify named users, i.e. how you match a Contact with a user that is logged into your website. The Tracker.Current.Session.Identify method is obsolete. It has been replaced with Tracker.Current.Session.IdentifyAs: The IdentifyAs() … Continue reading
Sitecore General error when submitting contact – Another contact with the same identifier already exists
In Sitecore when creating your own contacts you can get the following exception: 10604 10:16:27 ERROR General error when submitting contact. Exception: System.InvalidOperationException Message: Another contact with the same identifier already exists. Source: Sitecore.Analytics.MongoDB at Sitecore.Analytics.Data.DataAccess.MongoDb.MongoDbDataAdapterProvider.SaveContactWithIdentifier(IContact contact, ContactSaveOptions saveOptions) at … Continue reading
Posted in .net, c#, General .NET, Sitecore 8
Tagged Contact, ContactManager, ContactRepository, MongoDB, Sitecore and .net, xDB
2 Comments
Sitecore xDB – flush data to MongoDB
When debugging Sitecore xDB issues, it is a pain that data is not written to MongoDB directly, but you have to wait for your session to end. The legend said that you could either set the session timeout to 1 … Continue reading
Sitecore Contacts – Create and save contacts to and from xDB (MongoDB)
The Sitecore Contact is the cornerstone of the Sitecore Experience Platform and is the place where you store every data you know about any contact, named and anonymous. UPDATE: 09-09-2016: CreateContact Updated: Thanks to moginheden for the update. UPDATE: 27-09-2016: … Continue reading
Posted in .net, c#, General .NET, Sitecore 8
Tagged Analytics, Contact, ContactManager, ContactRepository, lockAttempt, MongoDB, Sitecore and .net, Tracker, xDB
21 Comments
Sitecore contact facets – Create your own facet
This article describes how to create a simple Sitecore facet consisting of a DateTime and a list of strings. A contact is made up of facets. Here are all the facets Sitecore uses (you will find the facets in \App_Config\Include\Sitecore.Analytics.Model.Config): In … Continue reading
Posted in .net, c#, General .NET, Sitecore 8
Tagged Contact, EnsureCollection, Facets, IElement, IElementCollection, IFacet, MongoDB, Sitecore and .net, xDB
16 Comments
Sitecore 8 and Tracker.Current.Session.Identify – Overriding expired contact session lock for contact id
The new Sitecore 8 Experience Profile is a vital part, yes almost a cornerstone of the new xDB concept. UPDATE 2018-01-19: Please note that in Sitecore 9, Tracker.Current.Session.Identify have been replaced with Tracker.Current.Session.IdentifyAs. For more information, see Sitecore 9 Tracker.Current.Session.Identify is replaced … Continue reading
Posted in c#, Sitecore 8, Sitecore and .net
Tagged Contact, Experience Profile, Sitecore and .net, Tracker.Current.Session.Identify, xDB
8 Comments
Sitecore 8 and Engagement Plans
With the introduction of the xDB in Sitecore 7.5, Sitecore also changed the analytics API. The VisitorManager have been replaced by the Tracker. The Tracker is one of the base API’s for Sitecore the new Sitecore Experience Platform (the new … Continue reading
Posted in c#, General .NET, Sitecore 8, Sitecore and .net
Tagged Engagement Plans, EnrollInEngagementPlan, RemoveFromEngagementPlan, Sitecore and .net, Tracker, xDB
1 Comment
Sitecore and xDB – Setting up MongoDB on your developer machine
With Sitecore 7.5, Sitecore introduces xDB – the new MongoDB based DMS database. But before you say “oh no, yet another technology I have to deal with”, you should know that working with MongoDB is very easy. In fact it … Continue reading