Customer journey mapping is the visual process of plotting a customer’s journey and analyzing their interactions with a brand.
This helps companies look at their business from the customer’s viewpoint. That, in turn, helps a business get insights into a customer’s pain points to be able to resolve them. This can be accomplished by
preparing charts, heatmaps, and other interactive visualizations, including the Sankey Diagram.
But running analyses with some numbers in a sheet for this kind of mapping does not inspire much thought. What is needed then is a well-constructed, easy-to-grasp visualization to understand how your customers move and interact with your brand.
According to the survey, the global data visualization market was valued at USD 4,874.4 million in 2020 and is projected to reach USD 6,570.7 million by the end of 2026, with a CAGR of 5.1% over the forecast period (2021-2026).
Also on the list is the Sankey Diagram, which offers a better understanding of the complex data required for customer path analytics. However, it has its own limitations, which we will discuss later in this post.
This data visualization tool provides a visual representation of the data flows within a system, including the flow of energy, materials, and even a customer’s journey in marketing.
What Is a Sankey Diagram?
As we had said in one of our earlier blog posts on the Sankey Diagram, this type of visualization is generally used to depict “a flow” from one set of values to the next.
They are so named after an Irishman, Capt. Matthew Sankey, who first used them in a publication on the energy efficiency of a steam engine in 1898.
You can use a Sankey map to visually demonstrate complex processes, focusing on a single aspect or resource. Such types of flow diagrams are useful when you’re making a decision about energy, time, or money.
What are the Components of a Sankey Diagram?
The main components of the Sankey diagram consist of the following:
1. Nodes: Representing the events in each path, a "node" is an element linked by "Flows."
2. Flows: They link the nodes. Each flow is specified by the names of its target and source nodes in the "from" and "to" fields. The value in the width field defines the thickness of the flow.
3. Drop-offs: A drop-off is a flow without a target node and refers to the link that ends at the present node. It occurs when at least one path continues beyond a node.
Essentially, if you need to see where a certain amount is coming from, where it is going, and any in-between steps, you can use a Sankey diagram.
A user analysis diagram enables you to drill down to any level and can also help determine the optimal level of depth.
The first thing to notice about this flow diagram is that it uses both thick and thin lines. The thick lines are arrows. The thick lines indicate the amount of something entering or leaving a system.
The thin lines show how the quantity of the thing changes as it enters or leaves the system.
What is a Customer Journey Map?
Before delving deeper into the Sankey Diagram, let’s first understand what exactly a customer journey map is. As we said earlier in this post, it is a visual representation of the buyer’s movement across all touchpoints of your brand.
The latter is in the form of a website, social media channels, live chat, and even offline channels.
This customer journey mapping helps businesses get insights into common customer pain points, which, in turn, allows them to better optimize and personalize the customer experience.
An example: This kind of user journey can help you scientifically understand why a customer abandoned their cart on your e-commerce website and reduce such instances.
Was it because the payment gateway was too cumbersome to use? Or because the link to the gateway showed a 404 error? Another example could be a buyer shopping for a specific item on your website, then moving on to one of your social media channels to continue his/her shopping there.
What Data Is Required to Create a Customer Journey Sankey Diagram?
To create a customer journey Sankey diagram, you require a particular integration of structural, relational, and event-stream behavioral data. This is because the diagram visualizes flow from source node to target node, along with link width; your data should map both the sequential steps a user follows and how many users take each path.
Accurate data and formatting are needed to create a Sankey diagram consisting of two categories: the fundamental format and the raw behavioral data points needed by visualization tools.
1. The basic behavioral data points
To capture the real journey, your basic event logging system has to gather the below-mentioned metrics:
Exclusive user identifier (user_id or session_id): Essential to stitch separate events together into a consistent timeline for every specific customer.
Touchpoint/Event name (event_name): The particular page or action the user interacted with (e.g., Homepage, Organic Search, Cancel/Drop-off, View Product, Add to Cart, Purchase). These serve as the nodes in the diagram.
Timestamp (time): The accurate time and date the event happened. This is important for arranging the steps sequentially so that the diagram flows clearly from left to right.
Optional filters/attributes: Dimensions like platform (web, iOS, Android), demographics, or marketing_channel let you group and refine your Sankey diagram for in-depth analysis.
2. The mandatory data structure for visualization
Unrefined timelines cannot be used in a Sankey generator. Visualization packages need the data to be compiled into a stage-by-stage columnar format.
Option 1: The Link-Value Structure
| Source Node | Target Node | Flow Value (Count/Value) |
|---|---|---|
| Organic search | Homepage | 5000 |
| Homepage | Product page | 3200 |
| Homepage | Drop-off | 1800 |
| Product page | Cart | 1200 |
| Cart | Purchase | 850 |
Source: The initial touchpoint
Target: The next touchpoint
Value: A measurable column indicating the number of sessions or users that completed that specific step. This determines how wide the connecting lines show up.
Option 2: The wide columnar data format
| Session ID | Step 1 | Step 2 | Step 3 | Step 4 |
|---|---|---|---|---|
| S121 | Organic Search | Product page | Add to cart | Purchase |
| S122 | Paid Search | Product page | Exit | |
| S123 | Social Media | Product page | Add to cart | Check out |
| S124 | Organic Search | Blog page | Product page | Purchase |
Used repeatedly by tools like specialized funnel builders or Excel, this structure plots successive steps across several columns.
How to Map Customer Journeys Using Sankey Diagrams
Sankey diagrams and Sankey charts were originally used for visualization and the analysis of energy flows, but they are a great tool to depict the flow of money, time, and resources, too.
Directional arrows between the nodes show the flows in a process, production system, or supply chain. What they help any business to do is to effectively communicate the data-based messaging to external or internal stakeholders like your customers or marketing teams, respectively.
In fact, a Sankey diagram or user journey diagram can be very useful in digital marketing analysis.
How to Interpret a Sankey Diagram for Customer Journey Analysis
Phase-by-phase interpretation guide:
1. Inspect the entry points (left side)
a) Check the first column of nodes to identify your traffic sources, such as paid ads, specific landing pages, direct traffic, or organic search.
b) Point out main pathways: Identify which entry points contribute the most traffic to the mid-funnel, highlighting your strongest acquisition channels.
2. Monitor narrowing and flow splitting (Mid-funnel)
Bottlenecks and drop-offs: As streams progress from left to right, an unexpected thinning of a link indicates a large portion of users exited the site or stopped moving.
Identify delays/stoppages: If 80% of drop-offs occur at a specific node, check that form or page for confusing UI, slow loading, or navigation issues.
Downstream/Upstream tracing: Hover over nodes to track where users go after reaching a dead-end page (did they leave the site or return to the homepage or search results?).
3. Inspect pogo-sticking and loops
Cycles: Identify arrows showing backward movement (e.g., users returning from Product Details to Search). Frequent loops highlight that users are failing to identify what they want and are navigating through the same pages.
4. Measure the conversion results (right side)
Check the final nodes: Check the number of users who reach the final goal (e.g., sign-up or purchase complete) versus those who exit at intermediate steps, such as cart or payment.
Classify your data: Use filters for mobile/desktop devices, traffic sources, or user cohorts to check whether drop-off points vary across numerous segments.
How are Sankey Diagrams Different from Customer Journey Maps?
Though both are mainly used to understand the interaction of users with a brand, a Sankey diagram is more of a quantitative, data-based flow chart; however, a customer journey map is more of a human-focused and strategic narrative framework.
Major Differences
| Aspect | Sankey Diagram | Customer Journey Map |
|---|---|---|
| Main nature | Quantifiable and mathematical flow visualization | Structural and qualitative storytelling blueprint |
| What it monitors | Drop-off rates, volume, traffic, and accurate multi-channel splits between levels | Multi-functional goals, challenges, interactions, and customer emotions. |
| Data source | Created straightforwardly from quantitative analytics tables | Created from behavioral insights, personas, research, and interviews |
| Path representation | Highlight all real paths users take concurrently, such as splitting, branching, and looping | Usually, models an archetypal or ideal path linearly |
| Visual element | Flow arrows whose width is rigidly proportional to the volume of the flow | Empathy maps, timeliness, quotes, phase cards, and swimlanes |
| Ideal for | Identifying traffic challenges, omnichannel migration, and quantitative drop-offs | Coordinating internal teams on strategic advancements, experience gaps, and customer empathy |
Can Sankey Diagrams Help Identify Customer Churn?
Absolutely.
Customer retention often hides its most significant insights in small transitions: when, why, and how users disengage.
With a Sankey Diagram, you can map churn like this:
a) Stage 1: 1000 subscribers start Month 1
b) Stage 2: 850 renew for Month 2
c) Stage 3: 700 renewals for Month 3
d) Stage 4: 300 cancel after a price change
Now you can visualize:
a) Which feature drops correlate with churn
b) When churn spikes occur
c) How engagement patterns predict renewal likelihood
According to Forrester (2025), companies that use visual churn tracking reduce customer attrition by up to 21%, simply because they identify "silent exits" earlier.
Industry Applications of Sankey Diagrams
How to use Sankey Diagrams? Sankey diagrams can be used across many industries and sectors. They are frequently used in Finance for tracking cash outflows and inflows, expenditure, and finances.
In marketing, it is used by the data analytics team to cut out the guesswork and measure the effectiveness of the marketing campaigns in a more scientific way.
Sankey diagrams are also used in the Healthcare sector to stitch together a map of the patient’s journey – from the first consultation to the end of treatment.
Benefits of Using Sankey Diagrams
Simply collecting your customers’ behavior is not enough for any business. It needs to analyze the same for actionable insights. Sankey charts can do that by:
1. Supporting multiple viewing levels wherein one can drill down to granular insights or see specific details. Sankey charts offer multiple viewing levels.
Using different types of views, users can look at high-level details, view specifics, or generate interactive views.
If one of your team members likes to drill down, many tools let you share that functionality without having to spend extra time on the creator’s end.
Additionally, you can choose the depth that works best for your purposes.
2. Making your most prolific shoppers stand out. With a Sankey diagram, you can cross-check how many times a customer has viewed your product to find out if they are interested in it.
Interested customers will read the comments and reviews. Additionally, they may add it to their cart but not buy it.
3. Showing areas that can be improved upon. Why do some of your shoppers abandon their shopping carts? This is one such visualization that a Sankey Diagram can provide.
4. Showing areas with the largest opportunities. It means using this form of visualization to see which of your products or services are selling like hotcakes, and why.
Limitations of Sankey Diagrams
1. Sankey diagrams get cumbersome to draw when presenting complex data, say with three or more nodes. But this downside can be circumvented today with the availability of open-source tools.
2. When presenting a Sankey diagram, remember the one golden rule: the width of the lines and arrows represents the actual amounts or volumes of resources. Often, developers make a mistake here.
3. Overly complex data is a bit difficult to depict using a Sankey diagram.
4. Not best for comparison of values
How to Create a Sankey Diagram to Map a Customer's Journey
Our in-house data analyst, Mehar Singh Gambhir, explains how to actually develop and interpret a Sankey diagram to map a buyer’s journey:
In this particular example of visualizing a customer’s journey throughout his/her buying experience, we start by listing the various touchpoints (nodes) that a customer goes through before a purchase is made.
We have considered a basic e-commerce platform for this exercise and have depicted its traffic flow based on our experience of using and working with such platforms.
From landing on an online shopping website or opening an app to make a purchase, there are several nodes involved at various stages along which traffic is directed.
A company can track customers proceeding from one buying stage to another or find out how many of them have left abruptly.
A graphic visualization like the Sankey diagram or alluvial diagram, depicting the flow of traffic across several buying stages, is a handy tool for this purpose.
The nodes at each level can vary based on the company and depending on what data points the company wants to be covered.
A customer’s journey starts from landing on the company’s website or its app from different sources. The most common event cases can be listed as:
a) Direct logging into the website/app and browsing products
b) Landing via organic search (redirected from a search engine based on a product search without an ad/promotion)
c) Clicking on an advertisement link from an external website or social media
Based on our retail experience, these are the most common data points and links used to map a customer's journey in a Sankey diagram.
If the customer has the app, they browse there; if not, they continue on the website.
From here on, there are several possibilities of how this journey may end:
1. If they are really interested in the product, they view the product features in detail, along with its price, while some leave without any further activity
2. Some may read the reviews and ratings for the product, then add it to their cart, leave the page, or click on another product.
3. Others may only be visiting to review their previous purchase. These links help understand customer behavior online and how they react at different stages.
4. A few customers may proceed to checkout after adding items to their cart, while others may continue shopping and add more products to their cart.
5. Some customers may abandon their carts or clear their carts and exit. Even at the checkout, some customers decide against making a purchase. Or they may encounter an issue during payment, resulting in a lost sale.
This information can be used to find the weak links in the website/app and make respective improvements.
So, once the nodes and links were finalized, we started building this diagram. There are various tools available online through libraries in Python, R, and JavaScript. For our purposes, we used the Plotly library from Python to construct the Sankey diagram.
The first step was to count the nodes (n) and assign each node a number from 0 to n-1, followed by storing the labels for each node in numerical order in a list.
We designed this visualization with 15 nodes with 7 different levels and a total of 29 links between them. The distribution of traffic from one node to another is based on dummy data, but the actual traffic flow can be extracted from raw data through some processing.
The nodes involved are:
Level 0:
1. Landing From(0)
Level 1:
1. External Ad/Link(1)
2. Direct Search(2)
3. Organic Search (3)
Level 2:
1. Mobile App(4)
2. Official Website(5)
Level 3:
1. View product & details(6)
2. Read Reviews (7)
3. Click on another product (8)
Level 4:
1. Add to Cart (9)
Level 5:
1. Checkout(10)
2. Clear Cart(11)
Level 6:
1. Purchase(12)
2. Give Reviews/Ratings(13)
3. Exit(14)
After defining the nodes and their labels, separate lists of source and target nodes were created at each level for all the links.
Do not forget that the list of source and target nodes should be in the same order as the links. Another list for defining the weight of the links, following the same order, is called “value,” and that depends on the amount of traffic that moves from a source to a target node.
Then, while plotting the actual figure, we defined the colors and the width for the nodes as well as the links based on what information to depict in that combination.
How Can Businesses Use Sankey Diagram Insights to Improve Marketing Performance?
Businesses use Sankey diagrams to convert multi-level marketing data into clear, visual stories where the width of every flow indicates volume (including revenue, leads, or count).
Major Tips to Enhance Marketing Performance
Identify drop-offs and funnel leaks: Unlike bar charts or static funnels that display overall percentages at each stage, a Sankey diagram visualizes the right paths taken by the users from acquisition to conversion. You can instantly see where users drop off, such as Landing Page → Product Page → Cart → Checkout.
Isolate channel-oriented behavior: A benchmark report might indicate a common 20% checkout drop-off, but a Sankey diagram shows that 80% of abandoned checkouts come from a single paid acquisition platform, whereas organic traffic/sessions convert clearly. This enables teams to redistribute the upcoming quarter's spend directly to better-performing channels.
Visualize multi-touch attribution: Rather than visualizing rigid multi-tab attribution spreadsheets, an energy flow diagram visualizes first-contact, middle-contact, and final conversion stages weighted by visitor count or revenue. This shows which touchpoint integrations drive business and helps teams understand the real value of each advertising platform.
Monitor pipeline velocity and lead flow: For multi-tier or B2B strategies, you can monitor leads from area to acquisition platform to the result (e.g., Lead Type → Sales Rep → Converted vs. Lost). Collaborative tools such as Tableau or Microsoft Power BI allow teams to examine particular nodes to check which reps or campaigns produce the highest output.
Clarify multi-functional communication: Sankey diagrams replace complex spreadsheets with distinctive pictorial flows, making it even simpler to communicate bottlenecks and performance metrics to executive leadership or non-technical stakeholders.
How can Sankey Diagrams Improve Customer Experience?
Sankey charts enhance customer experience by converting complicated, multi-level user behaviors into transparent visual data flows. Rather than looking at isolated funnel metrics or static spreadsheets, teams can identify friction points and redesign the user journey.
How Sankey Charts Help Improve Customer Experience
Highlighting drop-offs and funnel leaks: They illustrate the direction users take from the initial journey (like a homepage or ad click) via product pages, checkouts, and carts. You instantly notice where customers drop off and understand the key reasons behind abandonment instead of simply considering drop-off percentages.
Monitoring multi-touch attribution: Instead of giving complete credit to a last or single first click, a Sankey or user analysis diagram displays the real fusion of communications and channels that resulted in a conversion or purchase.
Showcasing friction in features and self-service: When visualized over user events within an app or platform, the flow paths show unpredicted dead-ends, loops and points where face difficulty in adopting specific features.
Converting data into team action: As flow widths showcase volume (like revenue or user count), both marketing and product teams can prioritize bottlenecks that make a major impact on user satisfaction.
What Are Common Mistakes to Avoid When Creating Sankey Diagrams?
Sankey Diagrams are powerful, but only when designed with clarity.
Avoid these pitfalls:
a) Too many nodes: Overcrowding confuses.
b) Inconsistent scaling: Always keep proportional line widths.
c) Lack of context: Add clear labels, legends, and tooltips to enhance clarity and understanding.
d) Overdecorating: Use color strategically; highlight insights, not aesthetics.
Remember, simplicity is sophistication. The best Sankeys show insight at a glance.
What Role Do Sankey Diagrams Play in Data Visualization Today?
In the age of AI-driven analytics, Sankey Diagrams bridge the gap between data science and storytelling.
They're used across various industries, including finance, manufacturing, healthcare, and marketing, to visualize cause-and-effect relationships.
For marketers, they unlock one core truth: how customers actually experience your brand.
According to McKinsey's "State of AI Marketing 2025," businesses that utilize advanced visualization techniques, such as Sankey flows, report a 37% higher campaign optimization efficiency and faster decision-making cycles.
It's not just about creating visually appealing content; it's about making data usable, understandable, and memorable.
Conclusion
A much underrated visualization tool, Sankey diagrams, even today, can be used to visualize events like a customer journey. They can be used to communicate your messaging effectively. Though a little cumbersome to draw, some of the best ways of creating Sankey diagrams are D3’s Sankey toolkit by Michael Bostock, charts in R, or using the Pandas library in Python or Plotly, another Python graphing library.




