Posts

Showing posts from November, 2019

Sitecore - Track user events in a delimited time frame

Almost always we need to track what users have been doing on our site, but what if we need to know if a user has performed a specific action within a certain time period? Recently I was asked to write code that reacts to some form events, e.g. upon submission some forms needed to be hidden and an alert needed to be shown if the submission happened within x days. One of the possible solutions we thought of was to use Sitecore Goals. Once a user submitted a form we registered a goal, on the next page load we checked if the goal was triggered (within a certain time frame) and we hid the form if needed. The following code will allow you to register goals for the current logged in user: public void TriggerGoal(ID goalId, string additionalData) { Assert.IsNotNull(Tracker.Current, "Tracker.Current"); Assert.IsNotNull(Tracker.Current.Session, "Tracker.Current.Session"); Assert.IsNotNull(goalId, "goalId"); using (XCon

Sitecore Symposium 2019 takeaways

Sitecore Symposium is the event of the year in the Sitecore world. This was my first year attending and it was also my first time as a speaker at this magnificent event! My presentation took place in one of the breakout rooms at the Swan Hotel and the whole experience was amazing. As a speaker, you are not able to enjoy all the sessions and fun stuff going around Symposium, because you have to practice! There’s a room for speakers only where you can practice in an almost real stage. I spent a few hours in this room practicing my presentation with my partner in crime Deepthi Katta until we felt we were ready! Speaking at Symposium was an amazing experience and attending the event is definitely something that I recommend to everyone that is part of this Sitecore world, from marketers, to clients, to developers, etc. But let’s get to the important stuff, this year’s theme was “Human connections in a digital world” and my main takeaways are around these 3 key areas: Sitecore 9.3, Sitecore

Netflix Next With Sitecore Cortex - Recap

Image
It was such an amazing experience being on stage at Sitecore Symposium this year! The conference lineup was amazing and this post is especially for those who were not able to attend my session. Deepthi Katta and I built a movie recommendations engine using Sitecore Cortex that used the users' interactions (by using Sitecore Goals) to recommend similar movies to users, but our goal was not just to showcase that. The main purpose of the session was to make everyone aware that everything is possible with Sitecore. Enough words, the code used can be found here:  Github  and the slides can be found here:  PDF Slides