User Experience and Customer Journey Analysis of a German cosmetic and medicine company

This project was carried out as part of the TechLabs “Digital Shaper Program” in Münster (summer term 2021).


Our project was a cooperation between TechLabs, a German cosmetic and medicine company and the Marketing Center Münster. Out task was to look deeper into the website of one sub-brand of the company. We analyzed the clickstream behaviour of the website visitors with the help of Descriptive analysis, Markov Chain, Clustering and Machine Learning in order to find optimization potential to help reduce the bounce rate and increase user engagement.


User experience describes all aspects of a user’s impressions and experience when interacting with a product, service, environment, or facility while the customer journey analysis helps a company see its products or services through its customers’ eyes. Since our project was to work together with a partner, we aimed to see the partners website through the eyes of their website visitors. With our acquired RStudio skills due to Techl#Labs, especially via the learning platform DataCamp, we planned to

  1. analyze the most common exit channels
  2. cluster common customer journeys
  3. predict future user behaviour


We received three datasets by the company, describing the sessions of each user. We downloaded them with Google Big Query and used this platform to get a first impression over the variables with the help of SQL. For data cleaning, we used R Studio. We merged all three data sets into one after reviewing which of the variables are important for the further analysis. Overall, we cleaned the original dataset by 30% to 1.209.827 data points. For this we created first a German subset, computed new variables, checked for duplicates, and removed session IDs with a session duration of zero or higher than the 95th percentile. Furthermore, we removed sessions with page views over 100 pages and those where the city was the headquarters of the company since we did not want to work with a biased dataset.


For the analysis three events were important — Purchase Interest (when a website visitor clicks on the “Buy Now” Button), Purchase Outclick (when the website visitor selects a wanted distributor) and Form Submit (when he/she subscribes to the newsletter). Since the goal of the website is to get the website visitor to engage further, we used these variables as the dependent ones. We started the analysis by running some descriptive analysis in order to gain a better understanding of the website visitors. Afterwards, we took a closer look towards the entry and exit channels, meaning how website visitors enter the website and when they specifically leave. In order to analyze the user journey, we decided to apply the Markov chain model. The Markov chain is being commonly used to describe user journeys by describing a sequence of events based on a linked transition probability of another event. For a visual presentation the Sankey Diagram can be used (presented in the following). However, since it was difficult for our analysis to gain relevant insights about the click behavior of the website visitor with the Sankey diagram, we focused our analysis on the transition probability matrix (also called heatmap).

Sanky diagram of the customer journey transition within the website
Transition probability heatmap of one cluster

Summary of results

To not exceed the scope of this post, we only provide the results and managerial implications of our analysis in an aggregated form. We condensed the entry channels into two major ones and found out that the paid entry channel leads to more events triggered. We therefore recommend to further allocate budget to paid media while optimizing the organic search, as well. Furthermore, we were able to see, with the help of the transition probability matrix and descriptive analysis, at which websites a lot of users bounce. We recommend placing better product linkages between specific websites and publishing more articles with interesting content, since they are popular and lead website visitors to their products. Furthermore, website visitors stay at the top of the page, wherefore interesting content should be positioned on the top of the websites. Regarding the exit channels, we could identify a high bounce rate. In order to reduce it, we recommend simplifying the navigation of the website, display less text-heavy content and improve cross-links between certain pages. For better conversion, we developed several recommendations to better track purchases and remove hurdles that keep website visitors from converting into buyers. Also, we were able to identify three major clusters, while one of those clusters yields the highest probability of an engaged website visitor. In terms of our prediction model, we found out which variables were more likely to help increase user engagement. Based on our entire analysis, we are now able to conclude how an optimal engaged user can be defined. In the future, our Machine Learning Model can be further developed to apply dynamic targeting on the website by including more information which can be gathered at the beginning of the journey of the website visitor.


All in all, we were able to achieve all our goals set in the beginning. This project was challenging but yet fun, we enjoyed our project work very much and would like to thank TechLabs and the MCM for the organization and support.

The team

Madleen Banze, Data Science: R (LinkedIn)


Marcus Cramer

Our community Members share their insights into the TechLabs Experience