diff --git a/app/mailers/digest_mailer.rb b/app/mailers/digest_mailer.rb
index 08c1c9bf5..52ae792e4 100644
--- a/app/mailers/digest_mailer.rb
+++ b/app/mailers/digest_mailer.rb
@@ -7,6 +7,7 @@ class DigestMailer < ApplicationMailer
@billboards = params[:billboards]
@unsubscribe = generate_unsubscribe_token(@user.id, :email_digest_periodic)
+ @subheader_variant = field_test(:digest_subheader_03_18, participant: @user)
subject = generate_title
# set sendgrid category in the header using smtp api
diff --git a/app/views/mailers/digest_mailer/digest_email.html.erb b/app/views/mailers/digest_mailer/digest_email.html.erb
index 4c3dc2fdb..b92a11fd6 100644
--- a/app/views/mailers/digest_mailer/digest_email.html.erb
+++ b/app/views/mailers/digest_mailer/digest_email.html.erb
@@ -8,12 +8,49 @@
- |
- Recent community posts just for you
- |
+ <% case @subheader_variant %>
+ <% when "just_for_you" %>
+
+ Hey <%= @user.name %>, here are some recent community posts just for you.
+ |
+ <% when "just_for_you_with_branding" %>
+
+ Hey <%= @user.name %>, here are some recent community posts just for you.
+ |
+ <% when "get_caught_up" %>
+
+ Hey <%= @user.name %>, let's get you caught up!
+ |
+ <% when "get_caught_up_with_branding" %>
+
+ Hey <%= @user.name %>, let's get you caught up!
+ |
+ <% when "whats_trending" %>
+
+ Hey <%= @user.name %>, find out what's trending!
+ |
+ <% when "whats_trending_with_branding" %>
+
+ Hey <%= @user.name %>, find out what's trending!
+ |
+ <% when "dont_miss_out" %>
+
+ Hey <%= @user.name %>, don't miss out!
+ |
+ <% when "dont_miss_out_with_branding" %>
+
+ Hey <%= @user.name %>, don't miss out!
+ |
+ <% when "base" %>
+
+ Recent community posts just for you
+ |
+ <% when "base_with_branding" %>
+
+ Recent community posts just for you
+ |
+ <% end %>
<% if @billboards&.first&.present? %>
diff --git a/config/field_test.yml b/config/field_test.yml
index b951c14f8..a3ab5e9bd 100644
--- a/config/field_test.yml
+++ b/config/field_test.yml
@@ -27,6 +27,35 @@
################################################################################
################################################################################
experiments:
+ digest_subheader_03_18:
+ started_at: 2024-04-15
+ variants:
+ - base
+ - base_with_branding
+ - just_for_you
+ - just_for_you_with_branding
+ - get_caught_up
+ - get_caught_up_with_branding
+ - whats_trending
+ - whats_trending_with_branding
+ - dont_miss_out
+ - dont_miss_out_with_branding
+ weights:
+ - 10
+ - 10
+ - 10
+ - 10
+ - 10
+ - 10
+ - 10
+ - 10
+ - 10
+ - 10
+ goals:
+ - user_creates_pageview
+ - user_creates_article_reaction
+ - user_views_pages_on_at_least_two_different_days_within_a_week
+ - user_views_pages_on_at_least_four_different_days_within_a_week
digest_count_03_18:
started_at: 2024-03-18
ended_at: 2024-03-28