Skip to content

Commit 85b39ee

Browse files
Changes to the trial emails (#6108)
* Update welcome_email.html.heex * Update site_setup_success_email.html.heex * Update site_setup_help_email.html.heex * Update create_site_email.html.heex * Update check_stats_email.html.heex * Update trial_one_week_reminder.html.heex * Update trial_over_email.html.heex * Create trial_ending_tomorrow.html.heex * Update trial_ending_tomorrow.html.heex * Create trial_ending_today.html.heex * Update email.ex * Update send_trial_notifications.ex * Update send_trial_notifications.ex * Update email.ex * Apply formatting * Remove unused argument from one of email functions * Make tests account for new phrasing of emails --------- Co-authored-by: Adrian Gruntkowski <github@todo.computer> Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
1 parent 22a1fee commit 85b39ee

16 files changed

+159
-237
lines changed

lib/plausible_web/email.ex

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,38 @@ defmodule PlausibleWeb.Email do
2727
base_email()
2828
|> to(user)
2929
|> tag("create-site-email")
30-
|> subject("Your Plausible setup: Add your website details")
30+
|> subject("Add your first site to start tracking")
3131
|> render("create_site_email.html", user: user)
3232
end
3333

3434
def site_setup_help(user, team, site) do
3535
base_email()
3636
|> to(user)
3737
|> tag("help-email")
38-
|> subject("Your Plausible setup: Waiting for the first page views")
38+
|> subject("No traffic recorded yet")
3939
|> render("site_setup_help_email.html",
4040
user: user,
4141
site: site,
4242
site_team: team
4343
)
4444
end
4545

46-
def site_setup_success(user, team, site) do
46+
def site_setup_success(user, site) do
4747
base_email()
4848
|> to(user)
4949
|> tag("setup-success-email")
50-
|> subject("Plausible is now tracking your website stats")
50+
|> subject("Your first visitor just showed up")
5151
|> render("site_setup_success_email.html",
5252
user: user,
53-
site: site,
54-
site_team: team
53+
site: site
5554
)
5655
end
5756

5857
def check_stats_email(user) do
5958
base_email()
6059
|> to(user)
6160
|> tag("check-stats-email")
62-
|> subject("Check your Plausible website stats")
61+
|> subject("How Plausible is different")
6362
|> render("check_stats_email.html", user: user)
6463
end
6564

@@ -91,19 +90,32 @@ defmodule PlausibleWeb.Email do
9190
base_email()
9291
|> to(user)
9392
|> tag("trial-one-week-reminder")
94-
|> subject("Your Plausible trial expires next week")
93+
|> subject("Your Plausible trial ends in one week")
9594
|> render("trial_one_week_reminder.html", user: user, team: team)
9695
end
9796

98-
def trial_upgrade_email(user, team, day, usage, suggested_volume) do
97+
def trial_ending_tomorrow_email(user, team, usage, suggested_volume) do
98+
base_email()
99+
|> to(user)
100+
|> tag("trial-ending-tomorrow")
101+
|> subject("Your Plausible trial ends tomorrow")
102+
|> render("trial_ending_tomorrow.html",
103+
user: user,
104+
team: team,
105+
custom_events: usage.custom_events,
106+
usage: usage.total,
107+
suggested_volume: suggested_volume
108+
)
109+
end
110+
111+
def trial_ending_today_email(user, team, usage, suggested_volume) do
99112
base_email()
100113
|> to(user)
101-
|> tag("trial-upgrade-email")
102-
|> subject("Your Plausible trial ends #{day}")
103-
|> render("trial_upgrade_email.html",
114+
|> tag("trial-ending-today")
115+
|> subject("Your Plausible trial ends today")
116+
|> render("trial_ending_today.html",
104117
user: user,
105118
team: team,
106-
day: day,
107119
custom_events: usage.custom_events,
108120
usage: usage.total,
109121
suggested_volume: suggested_volume
@@ -114,7 +126,7 @@ defmodule PlausibleWeb.Email do
114126
base_email()
115127
|> to(user)
116128
|> tag("trial-over-email")
117-
|> subject("Your Plausible trial has ended")
129+
|> subject("Your Plausible trial has expired")
118130
|> render("trial_over_email.html",
119131
user: user,
120132
team: team,
Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
Plausible is tracking your website stats without compromising the user experience and the privacy of your visitors.
2-
<br /><br /> Here's how to get even more out of your Plausible experience: <br /><br /> *
3-
<a href="https://plausible.io/docs/custom-event-goals">Set up custom events</a>
4-
and <a href="https://plausible.io/docs/pageview-goals">pageview goals</a>
5-
to count actions you want your visitors to take<br />
6-
* Running an ecommerce? Assign monetary values to custom events to track
7-
<a href="https://plausible.io/docs/ecommerce-revenue-tracking">revenue attribution</a>
8-
<br /> * Follow the journey from a landing page to conversion with
9-
<a href="https://plausible.io/docs/funnel-analysis">funnel analysis</a>
10-
<br /> *
11-
<a href="https://plausible.io/docs/manual-link-tagging">
12-
Tag your social media, email and paid links
13-
</a>
14-
to see which campaigns are responsible for most conversions<br /> *
15-
<a href="https://plausible.io/docs/custom-props/introduction">Send custom properties</a>
16-
to collect data that we don't track automatically <br /> * Explore our
17-
<a href="https://plausible.io/docs/stats-api">stats API</a>
18-
to retrieve your stats and our <a href="https://plausible.io/docs/sites-api">sites API</a>
19-
to create and manage sites programmatically<br />
20-
<br /><br />
21-
<a href={plausible_url()}>View your Plausible dashboard now</a>
22-
for the most valuable traffic insights at a glance. <br /><br />
23-
Do reply back to this email if you have any questions or need some guidance.
1+
It’s been a week since you started using Plausible.<br /><br />
2+
We built Plausible because web analytics became too complex and too invasive.<br /><br />
3+
We believe analytics should be simple to understand, fast to load and respectful of your visitors.<br /><br />
4+
No cookies. No personal data. No surveillance. Just clear insights about how your website is performing.<br /><br />
5+
<a href={plausible_url()}>Open your dashboard</a>
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
You've activated
2-
<%= if ee?() do %>
3-
your free 30-day trial of
4-
<% end %>
5-
{Plausible.product_name()}, an easy-to-use and privacy-friendly website analytics tool.
1+
You’ve created your Plausible account but haven’t added a site yet.<br /><br />
2+
Adding your first site only takes a minute and gets you from signup to seeing real traffic.<br /><br />
3+
<a href={"#{plausible_url()}/sites/new"}>Add your first site</a>
64
<br /><br />
7-
<a href={"#{plausible_url()}/sites/new"}>Click here</a>
8-
to add your website URL, your timezone and install our JavaScript snippet to start collecting visitor statistics.
9-
<%= if ee?() do %>
10-
<br /><br />Do reply back to this email if you have any questions or need some guidance.
11-
<% end %>
5+
If you need help getting started, our documentation walks you through the setup step by step:<br />
6+
<a href="https://plausible.io/docs">https://plausible.io/docs</a>
Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
<%= if ee?() and Plausible.Teams.on_trial?(@site_team) do %>
2-
You signed up for a free 30-day trial of Plausible, a simple and privacy-friendly website analytics tool.
3-
<br /><br />
4-
<% end %>
5-
To finish your setup for {@site.domain}, review
1+
We haven't recorded any traffic for {@site.domain} yet.<br /><br />
2+
This usually means Plausible has not been connected to your website or the tracking code has not been added correctly.<br /><br />
3+
To finish your setup, check
64
<a href={"#{plausible_url()}/#{URI.encode_www_form(@site.domain)}/installation?__team=#{@site_team.identifier}"}>
75
your installation
6+
</a>.<br /><br />
7+
If something still doesn't look right, see our troubleshooting guide:<br />
8+
<a href="https://plausible.io/docs/troubleshoot-integration">
9+
https://plausible.io/docs/troubleshoot-integration
810
</a>
9-
and start collecting visitor statistics. <br /><br />
10-
This Plausible script is 45 times smaller than Google Analytics script so you’ll have a fast loading site while getting all the important traffic insights on one single page.
11-
<br /><br /> We have a
12-
<a href="https://plausible.io/wordpress-analytics-plugin">WordPress plugin</a>, a
13-
<a href="https://plausible.io/gtm-template">Google Tag Manager template</a>
14-
and <a href="https://plausible.io/docs/integration-guides">other integration guides</a>
15-
too to help you start counting stats in no time.
16-
<%= if ee?() do %>
17-
<br /><br /> Do reply back to this email if you have any questions or need some guidance.
18-
<% end %>
Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
1-
Congrats! We've recorded the first visitor on
2-
<a href={"https://#{@site.domain}"}><%= @site.domain %></a>. Your traffic is now being counted without compromising the user experience and privacy of your visitors.
3-
<br /><br />
4-
Do check out your <a href={"#{plausible_url()}/#{URI.encode_www_form(@site.domain)}?__team=#{@site_team.identifier}"}>easy to use, fast-loading and privacy-friendly dashboard</a>.
5-
<br /><br />
6-
Something looks off? Take a look at our <a href="https://plausible.io/docs/troubleshoot-integration">installation troubleshooting guide</a>.
7-
<br /><br />
8-
<%= if (ee?() and Plausible.Teams.on_trial?(@site_team)) do %>
9-
You're on a 30-day free trial with no obligations so do take your time to explore Plausible.
10-
Here's how to get <a href="https://plausible.io/docs/your-plausible-experience">the most out of your Plausible experience</a>.
11-
<br /><br />
12-
<% end %>
13-
PS: You can import your historical Google Analytics stats into your Plausible dashboard.
14-
<a href="https://plausible.io/docs/google-analytics-import">Learn how our GA importer works</a>.
15-
<br /><br />
16-
<%= unless Plausible.ce?() do %>
17-
Do reply back to this email if you have any questions. We're here to help.
18-
<% end %>
1+
Your first visitor is now visible in Plausible.<br /><br />
2+
See where visitors come from, which pages they visit and which goals they complete, all in one simple dashboard.<br /><br />
3+
Everything is designed to be understood at a glance. No custom reports. No digging through menus.<br /><br />
4+
<a href={plausible_url()}>View your Plausible dashboard</a>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Your Plausible trial ends today.<br /><br />
2+
So far, your account has used {PlausibleWeb.AuthView.delimit_integer(@usage)} billable pageviews{if @custom_events >
3+
0,
4+
do:
5+
" and custom events in total",
6+
else:
7+
""}.<br /><br />
8+
<%= if @suggested_volume == :enterprise do %>
9+
This exceeds our standard plans. Once the trial ends, your dashboard will be locked. Please reply to this email and we'll prepare a custom plan for your volume.
10+
<% else %>
11+
To keep your dashboard unlocked and your stats collecting without interruption, select the {@suggested_volume} pageviews/month plan.<br /><br />
12+
<a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>
13+
Upgrade your account
14+
</a>
15+
<% end %>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Your Plausible trial ends tomorrow.<br /><br />
2+
Over the last 30 days, your account has used {PlausibleWeb.AuthView.delimit_integer(@usage)} billable pageviews{if @custom_events >
3+
0,
4+
do:
5+
" and custom events in total",
6+
else:
7+
""}.<br /><br />
8+
<%= if @suggested_volume == :enterprise do %>
9+
This exceeds our standard plans. Please reply to this email and we’ll prepare a custom plan for your volume.
10+
<% else %>
11+
Based on your usage, the {@suggested_volume} pageviews/month plan would be the right fit.<br /><br />
12+
You can
13+
<a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>
14+
upgrade your account
15+
</a>
16+
at any time to continue without interruption.
17+
<% end %>
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
Time flies! Your 30-day free trial of Plausible will end next week. <br /><br />
2-
Over the last three weeks, We hope you got to experience the potential benefits of having website stats in an easy to use dashboard while respecting the privacy of your visitors, not annoying them with the cookie and privacy notices and still having a fast loading site.
3-
<br /><br />
4-
In order to continue receiving valuable website traffic insights at a glance, you’ll need to
5-
<a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>upgrade your account</a>.
6-
<br /><br /> If you have any questions or feedback for us, feel free to reply to this email.
1+
Your Plausible trial ends in a week.<br /><br />
2+
If Plausible has become part of how you check traffic and measure results, you can continue without interruption by choosing a subscription plan.<br /><br />
3+
Everything you've set up will remain exactly as it is. No migration. No changes needed.<br /><br />
4+
You can
5+
<a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>
6+
upgrade your account
7+
</a>
8+
at any time.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
Your free Plausible trial has now expired. Upgrade your account to continue receiving valuable website traffic insights at a glance while respecting the privacy of your visitors and still having a fast loading site.
2-
<br /><br />
3-
1+
Your Plausible trial has expired and your dashboard is now locked.<br /><br />
2+
We’re still recording visitor stats in the background, so nothing is lost while you decide.<br /><br />
3+
When you’re ready, upgrade your account to unlock your dashboard and continue without interruption.<br /><br />
44
<a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>
5-
Upgrade now
5+
Upgrade your account
66
</a>
7-
<br /><br /> We will keep recording stats for {@extra_offset} days to give you time to upgrade.
7+
<br /><br />
8+
We’ll keep recording stats for {@extra_offset} more days. If you upgrade during this time, your dashboard will simply unlock and continue as normal.
Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
1-
We are building Plausible to provide a simple and ethical approach to tracking website visitors.
2-
We're super excited to have you on board! <br /><br />
3-
Here's how to get the most out of your Plausible experience: <br /><br /> *
4-
<a href="https://plausible.io/docs/email-reports">Enable email reports</a>
5-
and notifications for <a href="https://plausible.io/docs/traffic-spikes">traffic spikes</a>
6-
<br /> *
7-
<a href="https://plausible.io/docs/google-search-console-integration">
8-
Integrate with Search Console
1+
Welcome to Plausible.<br /><br />
2+
You can go from signup to seeing your first visitor in just a few minutes.<br /><br />
3+
Add your site and start tracking. That's it.<br /><br />
4+
Once installed, your dashboard will start updating in real time. No cookies. No consent banners. No configuration required.<br /><br />
5+
If you need help installing Plausible, see our integration guide:<br />
6+
<a href="https://plausible.io/docs/troubleshoot-integration">
7+
https://plausible.io/docs/troubleshoot-integration
98
</a>
10-
to get keyword phrases people find your site with<br /> *
11-
<a href="https://plausible.io/docs/users-roles">Invite team members and other collaborators</a>
12-
<br /> * Set up easy goals including
13-
<a href="https://plausible.io/docs/form-submissions-tracking">form submissions</a>,
14-
<a href="https://plausible.io/docs/error-pages-tracking-404">404 error pages</a>,
15-
<a href="https://plausible.io/docs/file-downloads-tracking">file downloads</a>
16-
and <a href="https://plausible.io/docs/outbound-link-click-tracking">outbound link clicks</a>
17-
<br /> * <a href="https://plausible.io/docs/excluding">Opt out from counting your own visits</a>
18-
<br /> * If you're concerned about adblockers,
19-
<a href="https://plausible.io/docs/proxy/introduction">set up a proxy to bypass them</a>
20-
<br />
21-
<br /><br /> Then you're ready to start exploring your fast loading, ethical and actionable
22-
<a href="https://plausible.io/sites">Plausible dashboard</a>. <br /><br />
23-
Have a question, feedback or need some guidance? Do reply back to this email.
9+
<br /><br />
10+
<a href={plausible_url()}>Open your Plausible dashboard</a>
11+
<br /><br /> Enjoy exploring Plausible.

0 commit comments

Comments
 (0)