Add subheader a/b test to digest (#20864)
* Add subheader a/b test to digest * Add billboards to digest emails (#20862) * Initial bb work * Add billboards to digest * Clean up tests and formatting * Clean up tests and formatting
This commit is contained in:
parent
cbae624b5e
commit
99517df220
3 changed files with 72 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -8,12 +8,49 @@
|
|||
<h1 style="margin: 0; font-size: 24px; color: #333;"> <%= community_name %> Digest </h1>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Subheader -->
|
||||
<tr>
|
||||
<td bgcolor="#F8F8F8" style="padding: 8px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px;">
|
||||
Recent community posts just for you
|
||||
</td>
|
||||
<% case @subheader_variant %>
|
||||
<% when "just_for_you" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 8px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px;">
|
||||
Hey <%= @user.name %>, here are some recent community posts just for you.
|
||||
</td>
|
||||
<% when "just_for_you_with_branding" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 14px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px; border: 3px solid <%= Settings::UserExperience.primary_brand_color_hex %>; font-weight: bold;">
|
||||
Hey <%= @user.name %>, here are some recent community posts just for you.
|
||||
</td>
|
||||
<% when "get_caught_up" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 8px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px;">
|
||||
Hey <%= @user.name %>, let's get you caught up!
|
||||
</td>
|
||||
<% when "get_caught_up_with_branding" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 14px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px; border: 3px solid <%= Settings::UserExperience.primary_brand_color_hex %>; font-weight: bold;">
|
||||
Hey <%= @user.name %>, let's get you caught up!
|
||||
</td>
|
||||
<% when "whats_trending" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 8px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px;">
|
||||
Hey <%= @user.name %>, find out what's trending!
|
||||
</td>
|
||||
<% when "whats_trending_with_branding" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 14px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px; border: 3px solid <%= Settings::UserExperience.primary_brand_color_hex %>; font-weight: bold;">
|
||||
Hey <%= @user.name %>, find out what's trending!
|
||||
</td>
|
||||
<% when "dont_miss_out" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 8px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px;">
|
||||
Hey <%= @user.name %>, don't miss out!
|
||||
</td>
|
||||
<% when "dont_miss_out_with_branding" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 14px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px; border: 3px solid <%= Settings::UserExperience.primary_brand_color_hex %>; font-weight: bold;">
|
||||
Hey <%= @user.name %>, don't miss out!
|
||||
</td>
|
||||
<% when "base" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 8px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px;">
|
||||
Recent community posts just for you
|
||||
</td>
|
||||
<% when "base_with_branding" %>
|
||||
<td bgcolor="#F8F8F8" style="padding: 14px; text-align: center; color: #3a3c3d; font-size: 16px;border-radius: 12px; border: 3px solid <%= Settings::UserExperience.primary_brand_color_hex %>; font-weight: bold;">
|
||||
Recent community posts just for you
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
|
||||
<% if @billboards&.first&.present? %>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue