Code
library(tidyverse)
library(gt)
library(IRdisplay)
library(ggsankey)
library(scales)
#set preferences
options(dplyr.summarise.inform = FALSE)
options(repr.plot.width = 15, repr.plot.height = 10)This one-off analysis provides additional data and insights into the impact of the Article Guidance experiment. This is in addition to the metrics available on the Test Kitchen automated analytics dashboard and extends a previous analyses completed in T429589.
The analysis covers a review of article survival rate over time and a drop-off funnel visualization. All results are broken down by editor experience level (junior vs. experienced) and platform (mobile vs. desktop) and pilot wiki.
Please see the task description for more details.
The analysis is based on experiment events logged in the product_metrics_web_based table from 27 May 2026 through 10 August 2026. All results are broken down by editor experience level (junior vs. experienced), platform (mobile vs. desktop) and pilot wiki.
library(tidyverse)
library(gt)
library(IRdisplay)
library(ggsankey)
library(scales)
#set preferences
options(dplyr.summarise.inform = FALSE)
options(repr.plot.width = 15, repr.plot.height = 10)Survival rate shows no longer statistically significant in the test kitchen analysis.
This is the first time since the experiment stabilised that none of the survival rate windows are significant. The point estimates have also come down noticeably (30-day was +13.6% last week, now +8.0%). We would like to understand what could be driving both the significance drop as well as the survival rate drop since this started happening kind of suddenly around 27th of July.
The core metrics spreadsheet can be used to review survival rate breakdowns by wiki, platform, and editor experience. This can help confirm if this decline is isolated to junior editors, platform, or a specific project.
Additionally, I’ve reviewed survival rates by week of experiment exposure to confirm whether this is a gradual regression or a sharp drop tied to a specific event if that would be helpful.
# load survival data
survival_rate_data_overall <-
read.csv(
file = 'data/survival_rate_data_overall.tsv',
header = TRUE,
sep = "\t",
stringsAsFactors = TRUE
) # Pivot long for comparative ggplot rendering
plot_data <- survival_rate_data_overall %>%
mutate(cohort_week = as.Date(as.character(cohort_week))) %>%
pivot_longer(
cols = c(control_survival_pct, treatment_survival_pct),
names_to = "variation",
values_to = "survival_pct"
) %>%
mutate(variation = if_else(variation == "control_survival_pct", "Control", "Treatment"))
# Plot Survival Rates
ggplot(plot_data, aes(x = cohort_week, y = survival_pct, color = variation, group = variation)) +
geom_line(linewidth = 1.2) +
geom_point(size = 3.5) +
scale_x_date(date_breaks = "1 week", date_labels = "%b %d") +
scale_y_continuous(labels = function(x) paste0(x, "%"), limits = c(0, 100)) +
scale_color_manual(values = c("Control" = "#7F7F7F", "Treatment" = "#1F77B4")) +
labs(
title = "Weekly Article Survival Rate (30-Day)",
subtitle = "Comparing Control vs. Treatment by Article Saved Date",
x = "Cohort Week",
y = "Survival Rate (%)",
color = "Variation"
) +
theme_minimal(base_size = 13) +
theme(
plot.title = element_text(size = 18, face = "bold", margin = margin(b = 6)),
plot.subtitle = element_text(size = 12, color = "gray30", margin = margin(b = 12)),
axis.title.x = element_text(size = 12, face = "bold", margin = margin(t = 10)),
axis.title.y = element_text(size = 12, face = "bold", margin = margin(r = 10)),
axis.text.x = element_text(size = 10, angle = 45, hjust = 1, color = "black"),
axis.text.y = element_text(size = 10, color = "black"),
legend.title = element_text(size = 11, face = "bold"),
legend.text = element_text(size = 10),
legend.position = "bottom"
)Insights
Note: Data is limited to May 25- July 6 weekly cohorts to guarantee a complete 30-day post-save observation window for deletion checks.
I also reviewed changes in survival rates by Wikipedia project.
plot_data_by_wiki <- survival_rate_data_weekly %>%
mutate(cohort_week = as.Date(as.character(cohort_week))) %>%
pivot_longer(
cols = c(control_survival_pct, treatment_survival_pct),
names_to = "variation",
values_to = "survival_pct"
) %>%
mutate(variation = if_else(variation == "control_survival_pct", "Control", "Treatment"))
# Plot faceted by Wiki
ggplot(plot_data_by_wiki, aes(x = cohort_week, y = survival_pct, color = variation, group = variation)) +
geom_line(linewidth = 1.2) +
geom_point(size = 3.5) +
facet_wrap(~ wiki) +
scale_x_date(date_breaks = "2 weeks", date_labels = "%b %d") +
scale_y_continuous(labels = function(x) paste0(x, "%"), limits = c(0, 100)) +
scale_color_manual(values = c("Control" = "#7F7F7F", "Treatment" = "#1F77B4")) +
labs(
title = "Weekly Article Survival Rate by Wiki",
x = "Cohort Week",
y = "Survival Rate (%)",
color = "Variation"
) +
theme_minimal(base_size = 13) +
theme(
plot.title = element_text(size = 18, face = "bold", margin = margin(b = 6)),
plot.subtitle = element_text(size = 12, color = "gray30", margin = margin(b = 12)),
axis.title.x = element_text(size = 12, face = "bold", margin = margin(t = 10)),
axis.title.y = element_text(size = 12, face = "bold", margin = margin(r = 10)),
axis.text.x = element_text(size = 10, angle = 45, hjust = 1, color = "black"),
axis.text.y = element_text(size = 10, color = "black"),
legend.title = element_text(size = 11, face = "bold"),
legend.text = element_text(size = 10),
legend.position = "bottom"
)Per Wiki Insights
I also completed a visual representation of user progression through the Article Guidance workflow steps.
Goal: We want to understand where users are voluntarily dropping and where the flow is blocking them from continuing rightfully.
A few notes:
Methodology
# load article guidance funnel data
article_funnel_data <-
read.csv(
file = 'data/article_guidance_funnel_data.tsv',
header = TRUE,
sep = "\t",
stringsAsFactors = TRUE
) # Define junior and experienced level groups
article_funnel_data <- article_funnel_data %>%
mutate(
user_group = case_when(
edit_count_bucket %in% c("0 edits", "1-4 edits", "5-99 edits") ~ "Junior Editor",
edit_count_bucket %in% c("100-999 edits", "1000+ edits") ~ "Experienced Editor",
TRUE ~ NA_character_
)
)# 1. Define step codes & display names
all_steps_map <- c(
"step_01_init" = "1. Init",
"step_02_write_title" = "2. Title Populated",
"step_03_select_topic_any" = "3. Select Topic (Any)",
"step_06_notability_check_shown" = "4. Notability Shown",
"step_04_sources_shown" = "5. Sources Validation Step",
"step_05_add_source_any" = "6. Add Source (Any)",
"step_07_guidance_shown" = "7. Guidance Shown",
"step_08_write_start" = "8. Write Start",
"step_09_article_saved" = "9. Article Saved"
)This funnel chart tracks user drop-off across the primary steps of the Article Guidance workflow, showing the primary points in the workflow users convert or drop off from initial entry (Init) to final publication (Article Saved).
Note: A more detailed sankey diagram is provided later on to provide details into cases where a user has several different options in the workflow.
# Dynamically compute total distinct sessions per step from session-level data
# Uses n_distinct(session_id[.x == 1]) to guarantee exact deduplicated session counts
step_counts <- article_funnel_data %>%
summarise(
across(
all_of(names(all_steps_map)),
~ n_distinct(session_id[.x == 1], na.rm = TRUE)
)
)
# 3. Build funnel dataframe calculated relative to initial baseline (Init)
funnel_retained <- tibble(
step_order = seq_along(all_steps_map),
step_code = names(all_steps_map),
step_clean = unname(all_steps_map)
) %>%
mutate(
sessions = map_dbl(step_code, ~ step_counts[[.x]]),
init_sessions = sessions[step_code == "step_01_init"],
# Calculate cumulative retention percentage relative to step 1 baseline
pct_retained = sessions / init_sessions,
# Format labels: "10,515 (88.4%)"
label_text = paste0(comma(sessions), " (", sprintf("%.1f%%", pct_retained * 100), ")"),
step_clean = fct_reorder(step_clean, step_order)
)
# 4. Render Horizontal Cumulative Retention Bar Chart
ggplot(funnel_retained, aes(x = sessions, y = fct_rev(step_clean))) +
geom_col(fill = "#2C5B88", width = 0.7) +
geom_text(
aes(label = label_text),
hjust = -0.05,
size = 4.2, # Bumped bar label size (was 3.3)
fontface = "bold"
) +
scale_x_continuous(
labels = comma_format(),
expand = expansion(mult = c(0, 0.28)) # Added headroom for larger end-of-bar labels
) +
coord_cartesian(clip = "off") + # Prevents text from being clipped at margins
labs(
title = "Article Guidance Workflow: Main Steps Breakdown",
subtitle = "Percentage of sessions reaching each step/action (% retained from Init)",
x = "Total Distinct Sessions",
y = NULL
) +
theme_minimal(base_size = 13) + # Increased base font scale (was 11)
theme(
plot.title = element_text(size = 18, face = "bold", margin = margin(b = 6)),
plot.subtitle = element_text(size = 12, color = "gray30", margin = margin(b = 15)),
axis.title.x = element_text(face = "bold", size = 12, margin = margin(t = 10)),
axis.text.y = element_text(size = 11, color = "black", face = "bold"), # Bumped Y-axis labels (was 9)
axis.text.x = element_text(size = 10, color = "gray30"),
panel.grid.major.y = element_blank(),
panel.grid.minor = element_blank(),
panel.grid.major.x = element_line(color = "gray90", linewidth = 0.5),
# Expands plot outer margin so Y-axis labels aren't cut off on rendering
plot.margin = margin(t = 10, r = 20, b = 10, l = 30, unit = "pt")
)Findings
# 1. Map user_group from edit_count_bucket and aggregate distinct sessions
step_counts_by_group <- article_funnel_data %>%
mutate(
user_group = case_when(
edit_count_bucket %in% c("0 edits", "1-4 edits", "5-99 edits") ~ "Junior Editor",
edit_count_bucket %in% c("100-999 edits", "1000+ edits") ~ "Experienced Editor",
TRUE ~ NA_character_
)
) %>%
filter(!is.na(user_group)) %>%
group_by(user_group) %>%
summarise(
across(
all_of(names(all_steps_map)),
~ n_distinct(session_id[.x == 1], na.rm = TRUE)
)
) %>%
pivot_longer(
cols = -user_group,
names_to = "step_code",
values_to = "sessions"
)
# 2. Calculate cumulative retention percentage per cohort
funnel_comp <- step_counts_by_group %>%
mutate(
step_order = match(step_code, names(all_steps_map)),
step_clean = all_steps_map[step_code]
) %>%
group_by(user_group) %>%
mutate(
init_sessions = sessions[step_code == "step_01_init"],
pct_retained = sessions / init_sessions,
label_text = paste0(comma(sessions), " (", sprintf("%.1f%%", pct_retained * 100), ")"),
step_clean = fct_reorder(step_clean, step_order)
) %>%
ungroup()
# 3. Render Side-by-Side Faceted Bar Charts
ggplot(funnel_comp, aes(x = sessions, y = fct_rev(step_clean), fill = user_group)) +
geom_col(width = 0.7, show.legend = FALSE) +
geom_text(
aes(label = label_text),
hjust = -0.05,
size = 3.8,
fontface = "bold"
) +
facet_wrap(~ user_group, ncol = 2, scales = "free_x") +
scale_x_continuous(
labels = comma_format(),
expand = expansion(mult = c(0, 0.42))
) +
coord_cartesian(clip = "off") +
scale_fill_manual(
values = c(
"Junior Editor" = "#D55E00",
"Experienced Editor" = "#0072B2"
)
) +
labs(
title = "Article Guidance Workflow: Main Steps Breakdown by Editor Experience",
subtitle = "Percentage of initial sessions retained from Init (Step 1) by editor experience level",
x = "Total Distinct Sessions",
y = NULL
) +
theme_minimal(base_size = 13) +
theme(
plot.title = element_text(size = 18, face = "bold", margin = margin(b = 6)),
plot.subtitle = element_text(size = 12, color = "gray30", margin = margin(b = 15)),
axis.title.x = element_text(face = "bold", size = 12, margin = margin(t = 10)),
axis.text.y = element_text(size = 11, color = "black", face = "bold"),)
axis.text.x = element_text(size = 10, color = "gray30"),
strip.text = element_text(size = 13, face = "bold", color = "black", margin = margin(b = 8)),
strip.background = element_rect(fill = "gray92", color = NA),
panel.spacing = unit(2.0, "lines"),
panel.grid.major.y = element_blank(),
panel.grid.minor = element_blank(),
panel.grid.major.x = element_line(color = "gray90", linewidth = 0.5),
plot.margin = margin(t = 10, r = 30, b = 10, l = 35, unit = "pt")
)Findings
# 2. Aggregate distinct session counts per step by platform
step_counts_by_platform <- article_funnel_data %>%
filter(!is.na(platform)) %>%
group_by(platform) %>%
summarise(
across(
all_of(names(all_steps_map)),
~ n_distinct(session_id[.x == 1], na.rm = TRUE)
),
.groups = "drop"
) %>%
pivot_longer(
cols = -platform,
names_to = "step_code",
values_to = "sessions"
)
# 3. Calculate cumulative retention percentage relative to each platform's Init baseline
funnel_platform_comp <- step_counts_by_platform %>%
mutate(
step_order = match(step_code, names(all_steps_map)),
step_clean = all_steps_map[step_code]
) %>%
group_by(platform) %>%
mutate(
init_sessions = sessions[step_code == "step_01_init"],
pct_retained = if_else(init_sessions > 0, sessions / init_sessions, 0),
label_text = paste0(comma(sessions), " (", sprintf("%.1f%%", pct_retained * 100), ")"),
step_clean = fct_reorder(step_clean, step_order)
) %>%
ungroup()
ggplot(funnel_platform_comp, aes(x = sessions, y = fct_rev(step_clean), fill = platform)) +
geom_col(width = 0.7, show.legend = FALSE) +
geom_text(
aes(label = label_text),
hjust = -0.05,
size = 3.8,
fontface = "bold"
) +
facet_wrap(~ platform, ncol = 2, scales = "free_x") +
scale_x_continuous(
labels = comma_format(),
expand = expansion(mult = c(0, 0.42))
) +
coord_cartesian(clip = "off") +
scale_fill_manual(
values = c(
"desktop_browser" = "#0072B2",
"mobile_browser" = "#D55E00"
)
) +
labs(
title = "Article Guidance Workflow: Main Steps Breakdown by Platform",
subtitle = "Percentage of initial sessions retained from Init (Step 1) across platforms",
x = "Total Distinct Sessions",
y = NULL
) +
theme_minimal(base_size = 13) +
theme(
plot.title = element_text(size = 18, face = "bold", margin = margin(b = 6)),
plot.subtitle = element_text(size = 12, color = "gray30", margin = margin(b = 15)),
axis.title.x = element_text(face = "bold", size = 12, margin = margin(t = 10)),
axis.text.y = element_text(size = 11, color = "black", face = "bold"),
axis.text.x = element_text(size = 10, color = "gray30"),
strip.text = element_text(size = 13, face = "bold", color = "black", margin = margin(b = 8)),
strip.background = element_rect(fill = "gray92", color = NA),
panel.spacing = unit(2.0, "lines"),
panel.grid.major.y = element_blank(),
panel.grid.minor = element_blank(),
panel.grid.major.x = element_line(color = "gray90", linewidth = 0.5),
plot.margin = margin(t = 10, r = 30, b = 10, l = 35, unit = "pt")
)Findings
step_counts_by_wiki <- article_funnel_data %>%
filter(!is.na(wiki_name)) %>%
group_by(wiki_name) %>%
summarise(
across(
all_of(names(all_steps_map)),
~ n_distinct(session_id[.x == 1], na.rm = TRUE)
),
.groups = "drop"
) %>%
pivot_longer(
cols = -wiki_name,
names_to = "step_code",
values_to = "sessions"
)
# 3. Calculate cumulative retention percentage relative to each wiki's Init baseline
funnel_wiki_comp <- step_counts_by_wiki %>%
mutate(
step_order = match(step_code, names(all_steps_map)),
step_clean = all_steps_map[step_code]
) %>%
group_by(wiki_name) %>%
mutate(
init_sessions = sessions[step_code == "step_01_init"],
pct_retained = if_else(init_sessions > 0, sessions / init_sessions, 0),
label_text = paste0(comma(sessions), " (", sprintf("%.1f%%", pct_retained * 100), ")"),
step_clean = fct_reorder(step_clean, step_order)
) %>%
ungroup()
# 4. Render Faceted Bar Chart by Wiki
ggplot(funnel_wiki_comp, aes(x = sessions, y = fct_rev(step_clean), fill = wiki_name)) +
geom_col(width = 0.7, show.legend = FALSE) +
geom_text(
aes(label = label_text),
hjust = -0.05,
size = 3.8,
fontface = "bold"
) +
facet_wrap(~ wiki_name, scales = "free_x") +
scale_x_continuous(
labels = comma_format(),
expand = expansion(mult = c(0, 0.42))
) +
coord_cartesian(clip = "off") +
scale_fill_viridis_d(option = "cividis", end = 0.85) +
labs(
title = "Article Guidance Workflow: Major Steps Breakdown by Wiki",
subtitle = "Percentage of initial sessions retained from Init (Step 1) across wikis",
x = "Total Distinct Sessions",
y = NULL,
caption = "PT wiki was paused in June 4th. Frwiki experiment is limited to Junior editors."
) +
theme_minimal(base_size = 13) +
theme(
plot.title = element_text(size = 18, face = "bold", margin = margin(b = 6)),
plot.subtitle = element_text(size = 12, color = "gray30", margin = margin(b = 15)),
axis.title.x = element_text(face = "bold", size = 12, margin = margin(t = 10)),
axis.text.y = element_text(size = 11, color = "black", face = "bold"),
axis.text.x = element_text(size = 10, color = "gray30"),
strip.text = element_text(size = 13, face = "bold", color = "black", margin = margin(b = 8)),
strip.background = element_rect(fill = "gray92", color = NA),
panel.spacing = unit(2.0, "lines"),
panel.grid.major.y = element_blank(),
panel.grid.minor = element_blank(),
panel.grid.major.x = element_line(color = "gray90", linewidth = 0.5),
plot.margin = margin(t = 10, r = 30, b = 10, l = 35, unit = "pt")
)Findings
The sankey diagrams below provide a detailed visualization of the user’s journey through the article guidance workflow, including optional selections, and is based on events instrumented in product_metrics_web_base.
sankey_sessions <- article_funnel_data %>%
mutate(
user_group = case_when(
edit_count_bucket %in% c("0 edits", "1-4 edits", "5-99 edits") ~ "Junior Editor",
edit_count_bucket %in% c("100-999 edits", "1000+ edits") ~ "Experienced Editor",
TRUE ~ NA_character_
)
) %>%
filter(!is.na(user_group)) %>%
transmute(
session_id,
user_group,
platform,
wiki_name,
`1. Init` = "Init",
`2. Title` = if_else(step_02_write_title == 1, "Title Populated", "Drop: Exit at Init"),
# 3. Topic
`3. Topic` = case_when(
step_03a_suggested_topic == 1 ~ "Suggested Topic",
step_03b_manual_topic == 1 ~ "Manual Topic",
step_03c_unsupported_topic == 1 ~ "Unsupported Topic",
step_03_select_topic_any == 1 ~ "Select Topic (Other)",
step_02_write_title == 1 ~ "Drop: Exit at Title",
TRUE ~ NA_character_
),
# 4. Notability Check Screen (Sessions that exit at Topic DROP HERE)
`4. Notability Check` = case_when(
step_06_notability_check_shown == 1 ~ "Notability Check Shown",
step_04_sources_shown == 1 ~ "Notability Check Not Shown",
step_03_select_topic_any == 1 ~ "Drop: Exit at Topic",
TRUE ~ NA_character_
),
# 5. Notability Choice / Action (Topic drops become NA here so they don't re-appear)
`5. Notability Choice` = case_when(
step_06a_notability_wikidata_item == 1 ~ "Notability: Wikidata Item",
step_06b_notability_learn == 1 ~ "Notability: Learn More",
step_06_notability_check_shown == 1 ~ "Notability: Exit",
step_04_sources_shown == 1 ~ "Bypassed Notability",
TRUE ~ NA_character_
),
# 6. Sources (Notability Check drops exit HERE and then become NA)
`6. Sources` = case_when(
step_04_sources_shown == 1 ~ "Sources Validation Step",
step_06_notability_check_shown == 1 ~ "Drop: Blocked at Notability",
TRUE ~ NA_character_
),
# 7. Add Source
`7. Add Source` = case_when(
step_05a_add_source_valid == 1 ~ "Valid Source Added",
step_05b_add_source_invalid == 1 ~ "Invalid Source Added",
step_05_add_source_any == 1 ~ "Source Added (Other)",
step_04_sources_shown == 1 ~ "No source added",
TRUE ~ NA_character_
),
# 8. Guidance
`8. Guidance` = case_when(
step_07_guidance_shown == 1 ~ "Guidance Shown",
step_05_add_source_any == 1 ~ "Drop: Exit at Add Source",
TRUE ~ NA_character_
),
# 9. Write Start
`9. Write Start` = case_when(
step_08_write_start == 1 ~ "Write Start",
step_07_guidance_shown == 1 ~ "Drop: Exit at Guidance",
TRUE ~ NA_character_
),
# 10. Saved
`10. Saved` = case_when(
step_09_article_saved == 1 ~ "Article Saved",
step_08_write_start == 1 ~ "Drop: Abandoned Draft",
TRUE ~ NA_character_
)
)
# 2. Function to create sankey diagrams
plot_labeled_sankey <- function(df, filter_col = NULL, filter_val = NULL, title_text = "", subtitle_text = NULL) {
# Filter dynamically if column and value are provided
if (!is.null(filter_col) && !is.null(filter_val)) {
df_subset <- df %>% filter(.data[[filter_col]] == filter_val)
} else {
df_subset <- df
}
# Step A: Transform subset to long format
sankey_long <- df_subset %>%
make_long(
`1. Init`, `2. Title`, `3. Topic`,
`4. Notability Check`, `5. Notability Choice`,
`6. Sources`, `7. Add Source`, `8. Guidance`, `9. Write Start`, `10. Saved`
) %>%
filter(!is.na(node))
# Step B: Compute metrics per node relative to initial subset size
node_metrics <- sankey_long %>%
group_by(x, node) %>%
summarise(n = n(), .groups = "drop") %>%
mutate(
init_n = sum(n[x == "1. Init"]),
pct_retained = n / init_n,
n_display = if_else(n < 50, "<50", comma(n)),
node_label = paste0(
node, "\n",
n_display, " (", sprintf("%.1f%%", pct_retained * 100), ")"
)
)
sankey_long_labeled <- sankey_long %>%
left_join(node_metrics, by = c("x", "node"))
unique_nodes <- unique(sankey_long_labeled$node)
node_colors <- setNames(
ifelse(
grepl("^Drop:", unique_nodes),
"#64748B",
case_when(
unique_nodes == "Init" ~ "#0072B2",
unique_nodes == "Title Populated" ~ "#E69F00",
grepl("Topic", unique_nodes) ~ "#009E73",
grepl("Notability", unique_nodes) ~ "#CC79A7",
unique_nodes == "Bypassed Notability" ~ "#D55E00",
unique_nodes == "Sources Shown" ~ "#F0E442",
unique_nodes == "No source added" ~ "#999999",
grepl("Source", unique_nodes) ~ "#D55E00",
unique_nodes == "Guidance Shown" ~ "#56B4E9",
unique_nodes == "Write Start" ~ "#E69F00",
unique_nodes == "Article Saved" ~ "#0072B2",
TRUE ~ "#2B6CB0"
)
),
unique_nodes
)
# Create subtitles
sub_txt <- if (!is.null(subtitle_text)) {
subtitle_text
} else if (!is.null(filter_val)) {
paste0("Flow Pathways: Session Count (N) and Retention % from Init for ", filter_val)
} else {
"Flow Pathways: Session Count (N) and Retention % from Init"
}
ggplot(sankey_long_labeled, aes(x = x, next_x = next_x, node = node, next_node = next_node, fill = factor(node))) +
geom_sankey(
flow.alpha = 0.35,
node.color = "white",
width = 0.18
) +
geom_sankey_label(
aes(label = node_label),
size = 2.6,
fontface = "bold",
color = "black",
fill = alpha("white", 0.88),
label.padding = unit(0.18, "lines"),
label.size = 0.2
) +
scale_fill_manual(values = node_colors, guide = "none") +
theme_sankey(base_size = 12) +
labs(
title = title_text,
subtitle = sub_txt,
x = NULL
) +
theme(
plot.title = element_text(size = 16, face = "bold", margin = margin(b = 4)),
plot.subtitle = element_text(size = 11, color = "gray30", margin = margin(b = 12)),
axis.text.x = element_blank(),
plot.margin = margin(t = 15, r = 25, b = 15, l = 25, unit = "pt")
)
}# Junior Editors (<100 Edits) Diagram
junior_sankey <- plot_labeled_sankey(
sankey_sessions,
filter_col = "user_group",
filter_val = "Junior Editor",
title_text = "Junior Editor Workflow (<100 Edits): Article Guidance Pathways"
)
# Experienced Editors (100+ Edits) Diagram
exp_sankey <- plot_labeled_sankey(
sankey_sessions,
filter_col = "user_group",
filter_val = "Experienced Editor",
title_text = "Experienced Editor Workflow (100+ Edits): Article Guidance Pathways"
)junior_sankeyexp_sankeyFindings
# Desktop Browser Diagram
desktop_sankey <- plot_labeled_sankey(
sankey_sessions,
filter_col = "platform",
filter_val = "desktop_browser",
title_text = "Desktop Browser Workflow: Article Guidance Pathways"
)
# Mobile Browser Diagram
mobile_sankey <- plot_labeled_sankey(
sankey_sessions,
filter_col = "platform",
filter_val = "mobile_browser",
title_text = "Mobile Browser Workflow: Article Guidance Pathways"
)desktop_sankeymobile_sankey Findings
# Simple Wikipedia Diagram
simplewiki_sankey <- plot_labeled_sankey(
sankey_sessions,
filter_col = "wiki_name",
filter_val = "simplewiki",
title_text = "Simple English Wikipedia: Article Guidance Pathways"
)
# French Wikipedia Diagram
frwiki_sankey <- plot_labeled_sankey(
sankey_sessions,
filter_col = "wiki_name",
filter_val = "frwiki",
title_text = "French Wikipedia: Article Guidance Pathways"
)
# French Wikipedia Diagram
trwiki_sankey <- plot_labeled_sankey(
sankey_sessions,
filter_col = "wiki_name",
filter_val = "trwiki",
title_text = "Turkish Wikipedia: Article Guidance Pathways"
)simplewiki_sankey frwiki_sankeytrwiki_sankey Findings
We saw the most significant funnel exit at the “Drop: Exit at Title” node. To unpack this, we broke down the specific paths and validation notices that occur at this exact point.
Note: This dataset reflects a slightly different time range than the earlier workflow visualizations because older experiment data is scrubbed after 90 days and newer logs have been added.
# load title drop off data
article_funnel_data_titledrop <-
read.csv(
file = 'data/article_guidance_funnel_data_titledrop.tsv',
header = TRUE,
sep = "\t",
stringsAsFactors = TRUE
) article_funnel_data_titledrop <- article_funnel_data_titledrop %>%
mutate(
user_group = case_when(
edit_count_bucket %in% c("0 edits", "1-4 edits", "5-99 edits") ~ "Junior Editor",
edit_count_bucket %in% c("100-999 edits", "1000+ edits") ~ "Experienced Editor",
TRUE ~ NA_character_
)
)sankey_sessions_w_titledrop <- article_funnel_data_titledrop %>%
filter(!is.na(user_group)) %>%
transmute(
session_id,
user_group,
platform,
wiki_name,
`1. Init` = "Init",
`2. Title` = if_else(step_02_write_title == 1, "Title Populated", "Drop: Exit at Init"),
# 2a. Title Validation Check
`2a. Title Validation` = case_when(
step_02a_title_conflict_shown == 1 ~ "Title Conflict Shown",
step_02d_unsupported_subject_shown == 1 ~ "Unsupported Subject Shown",
step_02f_subject_covered_shown == 1 ~ "Subject Covered Shown",
step_03_select_topic_any == 1 ~ "No Warning Shown",
step_02_write_title == 1 ~ "Drop: Exit at Title Input",
TRUE ~ NA_character_
),
# 2b. Title Action (Consolidated: Evaluates the terminal action taken in this phase)
`2b. Title Action` = case_when(
# Title Conflict logic
step_02b_title_conflict_use_suggestion == 1 & step_02c_title_conflict_continue == 1 ~ "Conflict: Continued with Suggestion",
step_02b_title_conflict_use_suggestion == 1 ~ "Drop: Abandoned After Suggestion",
step_02b_title_conflict_view_existing == 1 ~ "Conflict: View Existing",
step_02a_title_conflict_shown == 1 ~ "Drop: Conflict Exit",
# Unsupported logic
step_02e_unsupported_subject_start_writing == 1 ~ "Unsupported: Start Writing",
step_02e_unsupported_subject_request_support == 1 ~ "Unsupported: Request Support",
step_02d_unsupported_subject_shown == 1 ~ "Drop: Unsupported Exit",
# Subject Covered logic
step_02g_subject_covered_improve == 1 ~ "Subject Covered: Improve",
step_02f_subject_covered_shown == 1 ~ "Drop: Subject Covered Exit",
# Proceed directly (Must be last so ghost events don't override the exits above)
step_03_select_topic_any == 1 ~ "Proceed to Topics",
TRUE ~ NA_character_
),
# 3. Topic
`3. Topic` = case_when(
# 1. Force termination for paths that exit the new article funnel
grepl("^Drop:", `2b. Title Action`) ~ NA_character_,
`2b. Title Action` == "Subject Covered: Improve" ~ NA_character_,
`2b. Title Action` == "Conflict: View Existing" ~ NA_character_,
# 2. Normal topic selection logic
step_03a_suggested_topic == 1 ~ "Suggested Topic",
step_03b_manual_topic == 1 ~ "Manual Topic",
step_03c_unsupported_topic == 1 ~ "Unsupported Topic",
step_03_select_topic_any == 1 ~ "Select Topic (Other)",
# 3. Catch users who intended to proceed but abandoned before picking a topic
step_02c_title_conflict_continue == 1 |
step_02e_unsupported_subject_start_writing == 1 ~ "Drop: Exit at Topic Step",
TRUE ~ NA_character_
),
# 4. Notability Check Screen
`4. Notability Check` = case_when(
step_06_notability_check_shown == 1 ~ "Notability Check Shown",
step_04_sources_shown == 1 ~ "Notability Check Not Shown",
step_03_select_topic_any == 1 ~ "Drop: Exit at Topic",
TRUE ~ NA_character_
),
# 5. Notability Choice / Action
`5. Notability Choice` = case_when(
step_06a_notability_wikidata_item == 1 ~ "Notability: Wikidata Item",
step_06b_notability_learn == 1 ~ "Notability: Learn More",
step_06_notability_check_shown == 1 ~ "Notability: Exit",
step_04_sources_shown == 1 ~ "Bypassed Notability",
TRUE ~ NA_character_
),
# 6. Sources
`6. Sources` = case_when(
step_04_sources_shown == 1 ~ "Sources Validation Step",
step_06_notability_check_shown == 1 ~ "Drop: Blocked at Notability",
TRUE ~ NA_character_
),
# 7. Add Source
`7. Add Source` = case_when(
step_05a_add_source_valid == 1 ~ "Valid Source Added",
step_05b_add_source_invalid == 1 ~ "Invalid Source Added",
step_05_add_source_any == 1 ~ "Source Added (Other)",
step_04_sources_shown == 1 ~ "No source added",
TRUE ~ NA_character_
),
# 8. Guidance
`8. Guidance` = case_when(
step_07_guidance_shown == 1 ~ "Guidance Shown",
step_05_add_source_any == 1 ~ "Drop: Exit at Add Source",
TRUE ~ NA_character_
),
# 9. Write Start
`9. Write Start` = case_when(
step_08_write_start == 1 ~ "Write Start",
step_07_guidance_shown == 1 ~ "Drop: Exit at Guidance",
TRUE ~ NA_character_
),
# 10. Saved
`10. Saved` = case_when(
step_09_article_saved == 1 ~ "Article Saved",
step_08_write_start == 1 ~ "Drop: Abandoned Draft",
TRUE ~ NA_character_
)
)
# 2. Updated Plotting Function
plot_labeled_sankey <- function(df, filter_col = NULL, filter_val = NULL, title_text = "", subtitle_text = NULL) {
if (!is.null(filter_col) && !is.null(filter_val)) {
df_subset <- df %>% filter(.data[[filter_col]] == filter_val)
} else {
df_subset <- df
}
# Removed `2c. Title Continuation` from make_long
sankey_long <- df_subset %>%
make_long(
`1. Init`, `2. Title`, `2a. Title Validation`, `2b. Title Action`, `3. Topic`,
`4. Notability Check`, `5. Notability Choice`,
`6. Sources`, `7. Add Source`, `8. Guidance`, `9. Write Start`, `10. Saved`
) %>%
filter(!is.na(node))
node_metrics <- sankey_long %>%
group_by(x, node) %>%
summarise(n = n(), .groups = "drop") %>%
mutate(
init_n = sum(n[x == "1. Init"]),
pct_retained = n / init_n,
n_display = if_else(n < 50, "<50", comma(n)),
node_label = paste0(
node, "\n",
n_display, " (", sprintf("%.1f%%", pct_retained * 100), ")"
)
)
sankey_long_labeled <- sankey_long %>%
left_join(node_metrics, by = c("x", "node"))
unique_nodes <- unique(sankey_long_labeled$node)
# Ensure color mapping aligns with new consolidated names
node_colors <- setNames(
ifelse(
grepl("^Drop:", unique_nodes),
"#64748B",
case_when(
unique_nodes == "Init" ~ "#0072B2",
unique_nodes == "Title Populated" ~ "#E69F00",
grepl("Conflict|Unsupported|Subject Covered|Title Validation|Title Action|Proceed|No Warning Shown", unique_nodes) ~ "#E69F00", # <--- Updated here
grepl("Topic", unique_nodes) ~ "#009E73",
grepl("Notability", unique_nodes) ~ "#CC79A7",
unique_nodes == "Bypassed Notability" ~ "#D55E00",
unique_nodes == "Sources Validation Step" ~ "#F0E442",
unique_nodes == "No source added" ~ "#999999",
grepl("Source", unique_nodes) ~ "#D55E00",
unique_nodes == "Guidance Shown" ~ "#56B4E9",
unique_nodes == "Write Start" ~ "#E69F00",
unique_nodes == "Article Saved" ~ "#0072B2",
TRUE ~ "#2B6CB0"
)
),
unique_nodes
)
sub_txt <- if (!is.null(subtitle_text)) {
subtitle_text
} else if (!is.null(filter_val)) {
paste0("Flow Pathways: Session Count (N) and Retention % from Init for ", filter_val)
} else {
"Flow Pathways: Session Count (N) and Retention % from Init"
}
ggplot(sankey_long_labeled, aes(x = x, next_x = next_x, node = node, next_node = next_node, fill = factor(node))) +
geom_sankey(
flow.alpha = 0.35,
node.color = "white",
width = 0.18
) +
geom_sankey_label(
aes(label = node_label),
size = 2.4,
fontface = "bold",
color = "black",
fill = alpha("white", 0.88),
label.padding = unit(0.16, "lines"),
label.size = 0.2
) +
scale_fill_manual(values = node_colors, guide = "none") +
theme_sankey(base_size = 12) +
labs(
title = title_text,
subtitle = sub_txt,
x = NULL
) +
theme(
plot.title = element_text(size = 16, face = "bold", margin = margin(b = 4)),
plot.subtitle = element_text(size = 11, color = "gray30", margin = margin(b = 12)),
axis.text.x = element_blank(),
plot.margin = margin(t = 15, r = 25, b = 15, l = 25, unit = "pt")
)
}plot_title_validation_sankey <- function(df, filter_col = NULL, filter_val = NULL, title_text = "Title Validation Drop-off", subtitle_text = NULL) {
if (!is.null(filter_col) && !is.null(filter_val)) {
df_subset <- df %>% filter(.data[[filter_col]] == filter_val)
} else {
df_subset <- df
}
# 1. Expanded Sequence: Add `1. Init` back into the chain
sankey_long <- df_subset %>%
make_long(
`1. Init`, `2. Title`, `2a. Title Validation`, `2b. Title Action`, `3. Topic`
) %>%
filter(!is.na(node))
# 2. Re-base Metrics: Calculate retention percentages relative to '1. Init'
node_metrics <- sankey_long %>%
group_by(x, node) %>%
summarise(n = n(), .groups = "drop") %>%
mutate(
base_n = sum(n[x == "1. Init"]),
pct_retained = n / base_n,
n_display = if_else(n < 50, "<50", scales::comma(n)),
node_label = paste0(
node, "\n",
n_display, " (", sprintf("%.1f%%", pct_retained * 100), ")"
)
)
sankey_long_labeled <- sankey_long %>%
left_join(node_metrics, by = c("x", "node"))
unique_nodes <- unique(sankey_long_labeled$node)
# 3. Colors: Re-add the dark blue mapping for Init
node_colors <- setNames(
ifelse(
grepl("^Drop:", unique_nodes),
"#64748B",
case_when(
unique_nodes == "Init" ~ "#0072B2",
unique_nodes == "Title Populated" ~ "#E69F00",
grepl("Conflict|Unsupported|Subject Covered|Title Validation|Title Action|Proceed|Valid Title", unique_nodes) ~ "#E69F00",
grepl("Topic", unique_nodes) ~ "#009E73",
TRUE ~ "#2B6CB0"
)
),
unique_nodes
)
sub_txt <- if (!is.null(subtitle_text)) {
subtitle_text
} else if (!is.null(filter_val)) {
paste0("Flow Pathways: Session Count (N) and Retention % from Init for ", filter_val)
} else {
"Flow Pathways: Session Count (N) and Retention % from Init"
}
ggplot(sankey_long_labeled, aes(x = x, next_x = next_x, node = node, next_node = next_node, fill = factor(node))) +
geom_sankey(
flow.alpha = 0.35,
node.color = "white",
width = 0.18
) +
geom_sankey_label(
aes(label = node_label),
size = 2.4, # Scaled down slightly to fit the extra column
fontface = "bold",
color = "black",
fill = alpha("white", 0.88),
label.padding = unit(0.16, "lines"),
label.size = 0.2
) +
scale_fill_manual(values = node_colors, guide = "none") +
theme_sankey(base_size = 12) +
labs(
title = title_text,
subtitle = sub_txt,
x = NULL
) +
theme(
plot.title = element_text(size = 16, face = "bold", margin = margin(b = 4)),
plot.subtitle = element_text(size = 11, color = "gray30", margin = margin(b = 12)),
axis.text.x = element_blank(),
plot.margin = margin(t = 15, r = 25, b = 15, l = 25, unit = "pt")
)
}overall_sankey_diagram <- plot_title_validation_sankey(
sankey_sessions_w_titledrop,
title_text = "Overall Article Guidance Workflow: Editor Journey Following Title Population"
)overall_sankey_diagram Key Findings
The single largest drop-off in the workflow still occurs immediately after the title is populated. 44.2% of all sessions (4,791) abandon the process here (“Drop: Exit at Title Input”) before advancing to topic selection or without resulting in any validation notices (title conflict, subject covered, or unsupported subject shown)
The Unsupported Subject notice is the most common notice shown after the title is populated. It appears in 7.8% of total article guidance creation attempt sessions. However, the majority of users (66.4%) who see this warning clicked “Start Writing” rather than abandoning the flow.
The “Subject Covered” notice was shown at 4.1% of sessions. A little more than half (55.6%) of the users who saw the this notice chose to redirect to an existing article.
“Title Conflict” warnings are the least common friction point, occurring in only 1.4% of total sessions.
# Junior Editors (<100 Edits) Diagram
junior_sankey_title_drop_off <- plot_title_validation_sankey(
sankey_sessions_w_titledrop,
filter_col = "user_group",
filter_val = "Junior Editor",
title_text = "Junior Editor Workflow (<100 Edits): Editor Journey Following Title Population"
)
# Experienced Editors (100+ Edits) Diagram
exp_sankey_title_drop_off <- plot_title_validation_sankey(
sankey_sessions_w_titledrop,
filter_col = "user_group",
filter_val = "Experienced Editor",
title_text = "Experienced Editor Workflow (100+ Edits): Editor Journey Following Title Population"
)junior_sankey_title_drop_off exp_sankey_title_drop_offKey Findings
Experienced Editors are significantly more likely to abandon the flow immediately after the title is populated. 62.6% of Experienced Editor sessions drop at the “Exit at Title Input” stage, compared to only 37.1% for Junior Editors.
Junior Editors encounter all three title validation notices (Unsupported Subject, Title Conflict, and Subject Covered) at a higher rate. The most significant gap is the “Subject Covered” notice (5.1% of Junior sessions vs. 1.6% of Experienced), indicating newer editors are more prone to attempting duplicate articles.
Both groups encounter the “Unsupported Subject” warning at comparable rates (8.0% for Juniors, 7.1% for Experienced). However, of the Experienced Editors who see it, the vast majority bypass it by clicking “Start Writing” (6.0% of total sessions) rather than abandoning the flow (1.0% exit rate).
# Desktop Browser Diagram
desktop_title_sankey <- plot_title_validation_sankey(
sankey_sessions_w_titledrop,
filter_col = "platform",
filter_val = "desktop_browser",
title_text = "Desktop Browser Workflow: Editor Journey Following Title Population"
)
# Mobile Browser Diagram
mobile_title_sankey <- plot_title_validation_sankey(
sankey_sessions_w_titledrop,
filter_col = "platform",
filter_val = "mobile_browser",
title_text = "Mobile Browser Workflow: Editor Journey Following Title Population"
)desktop_title_sankeymobile_title_sankeyKey Findings
Desktop users abandon the flow at the “Exit at Title Input” stage at a rate of 47.6%, which is significantly higher than the mobile abandonment rate of 26.7%.
Mobile users encounter the title validation notices more frequently, most notably triggering the “Subject Covered” warning in 8.0% of sessions compared to just 3.4% on desktop. Mobile users also encounter “Unsupported Subject” notices more often (9.8% vs. 7.4% on desktop).
# Simple Wikipedia Diagram
simplewiki_sankey <- plot_title_validation_sankey(
sankey_sessions_w_titledrop,
filter_col = "wiki_name",
filter_val = "simplewiki",
title_text = "Simple English Wikipedia: Article Guidance Pathways"
)
# French Wikipedia Diagram
frwiki_sankey <- plot_title_validation_sankey(
sankey_sessions_w_titledrop,
filter_col = "wiki_name",
filter_val = "frwiki",
title_text = "French Wikipedia: Article Guidance Pathways"
)
# French Wikipedia Diagram
trwiki_sankey <- plot_title_validation_sankey(
sankey_sessions_w_titledrop,
filter_col = "wiki_name",
filter_val = "trwiki",
title_text = "Turkish Wikipedia: Article Guidance Pathways"
)simplewiki_sankey frwiki_sankeytrwiki_sankeyKey Findings
Turkish Wikipedia sees a significantly higher abandonment rate immediately after the title populates, with 56.9% of sessions dropping at the “Exit at Title Input” stage. In contrast, both French and Simple English Wikipedia see a lower 35.5% drop-off at this exact same stage.
More article creation sessions at Simple English Wikipedia are shown the “Unsupported Subject Shown” notice (17.0% of sessions) compared to French (6.1%) and Turkish (6.5%). Because it appears more often, Simple English also has a much higher rate of users bypassing this warning by clicking “Start Writing” (12.3%) than French (3.4%) or Turkish (4.6%).