Pick winner in header field test (#20911)
This commit is contained in:
parent
67c48977db
commit
63fa1ee2e6
3 changed files with 12 additions and 71 deletions
|
|
@ -7,7 +7,6 @@ class DigestMailer < ApplicationMailer
|
|||
@billboards = params[:billboards]
|
||||
@unsubscribe = generate_unsubscribe_token(@user.id, :email_digest_periodic)
|
||||
|
||||
@headers_variant = field_test(:digest_headers_04_22, participant: @user)
|
||||
subject = generate_title
|
||||
|
||||
# set sendgrid category in the header using smtp api
|
||||
|
|
|
|||
|
|
@ -3,76 +3,16 @@
|
|||
<td align="center">
|
||||
<table style="width:100%;" cellpadding="0" cellspacing="0">
|
||||
<!-- Header -->
|
||||
<% case @headers_variant %>
|
||||
<% when "base" %>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#FFFFFF" style="padding: 25px 2px 35px;">
|
||||
<h1 style="margin: 0; font-size: 24px; color: #333;"> <%= community_name %> Digest </h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<% when "base_without_top_header" %>
|
||||
<tr>
|
||||
<td bgcolor="#F8F8F8" style="margin-top: 6px; display: block; 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>
|
||||
</tr>
|
||||
<% when "base_with_only_first_name" %>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#FFFFFF" style="padding: 25px 2px 35px;">
|
||||
<h1 style="margin: 0; font-size: 24px; color: #333;"> <%= community_name %> Digest </h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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.split(" ").first %>, let's get you caught up!
|
||||
</td>
|
||||
</tr>
|
||||
<% when "base_with_only_first_name_and_no_top_header" %>
|
||||
<tr>
|
||||
<td bgcolor="#F8F8F8" style="margin-top: 6px; display: block; 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.split(" ").first %>, let's get you caught up!
|
||||
</td>
|
||||
</tr>
|
||||
<% when "base_with_emoji" %>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#FFFFFF" style="padding: 25px 2px 35px;">
|
||||
<h1 style="margin: 0; font-size: 24px; color: #333;"> <%= community_name %> Digest </h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<% when "base_with_emoji_and_no_top_header" %>
|
||||
<tr>
|
||||
<td bgcolor="#F8F8F8" style="margin-top: 6px; display: block; 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>
|
||||
</tr>
|
||||
<% when "base_with_emoji_and_only_first_name" %>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#FFFFFF" style="padding: 25px 2px 35px;">
|
||||
<h1 style="margin: 0; font-size: 24px; color: #333;"> <%= community_name %> Digest </h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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.split(" ").first %>, let's get you caught up!
|
||||
</td>
|
||||
</tr>
|
||||
<% when "base_with_emoji_and_only_first_name_and_no_top_header" %>
|
||||
<tr>
|
||||
<td bgcolor="#F8F8F8" style="margin-top: 6px; display: block; 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.split(" ").first %>, let's get you caught up!
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#FFFFFF" style="padding: 25px 2px 35px;">
|
||||
<h1 style="margin: 0; font-size: 24px; color: #333;"> <%= community_name %> Digest </h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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.split(" ").first %>, let's get you <span style="display:inline-block">caught up!</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<% if @billboards&.first&.present? %>
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@
|
|||
experiments:
|
||||
digest_headers_04_22:
|
||||
started_at: 2024-04-22
|
||||
ended_at: 2024-05-01
|
||||
winner: base_with_emoji_and_only_first_name
|
||||
variants:
|
||||
- base
|
||||
- base_without_top_header
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue