Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
clarifying the suggested plan (#5598)
Marko Saric797a5bf4c1eb
diff --git a/lib/plausible_web/templates/email/dashboard_locked.html.heex b/lib/plausible_web/templates/email/dashboard_locked.html.heexindex 69869b3096..0b268f69e2 100644--- a/lib/plausible_web/templates/email/dashboard_locked.html.heex+++ b/lib/plausible_web/templates/email/dashboard_locked.html.heex@@ -12,7 +12,7 @@ During the last billing cycle ({PlausibleWeb.TextHelpers.format_date_range(<%= if @suggested_volume == :enterprise do %>Your usage exceeds our standard plans, so please reply back to this email for a tailored quote.<% else %>- <a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>Click here to upgrade your subscription</a>. We recommend you upgrade to the {@suggested_volume}/mo plan. The new charge will be prorated to reflect the amount you have already paid and the time until your current subscription is supposed to expire.+ <a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>Click here to upgrade your subscription</a>. We recommend you upgrade to the {@suggested_volume} pageviews/month plan. The new charge will be prorated to reflect the amount you have already paid and the time until your current subscription is supposed to expire.<br /><br />If your usage decreases in the future, you can switch to a lower plan at any time. Any credit balance will automatically apply to future payments.<% end %>diff --git a/lib/plausible_web/templates/email/over_limit.html.heex b/lib/plausible_web/templates/email/over_limit.html.heexindex a3d7ff5ba4..ff020d6dff 100644--- a/lib/plausible_web/templates/email/over_limit.html.heex+++ b/lib/plausible_web/templates/email/over_limit.html.heex@@ -13,7 +13,7 @@ During the last billing cycle ({PlausibleWeb.TextHelpers.format_date_range(<%= if @suggested_volume == :enterprise do %>Your usage exceeds our standard plans, so please reply back to this email for a tailored quote.<% else %>- <a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>Click here to upgrade your subscription</a>. We recommend you upgrade to the {@suggested_volume}/mo plan. The new charge will be prorated to reflect the amount you have already paid and the time until your current subscription is supposed to expire.+ <a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>Click here to upgrade your subscription</a>. We recommend you upgrade to the {@suggested_volume} pageviews/month plan. The new charge will be prorated to reflect the amount you have already paid and the time until your current subscription is supposed to expire.<br /><br />If your usage decreases in the future, you can switch to a lower plan at any time. Any credit balance will automatically apply to future payments.<% end %>diff --git a/lib/plausible_web/templates/email/trial_upgrade_email.html.heex b/lib/plausible_web/templates/email/trial_upgrade_email.html.heexindex 30be57e7ab..77843ee9ec 100644--- a/lib/plausible_web/templates/email/trial_upgrade_email.html.heex+++ b/lib/plausible_web/templates/email/trial_upgrade_email.html.heex@@ -9,7 +9,7 @@ In the last month, your account has used {PlausibleWeb.AuthView.delimit_integer(<%= if @suggested_volume == :enterprise do %>This is more than our standard plans, so please reply back to this email to get a quote for your volume.<% else %>- Based on that we recommend you select a {@suggested_volume}/mo plan. <br /><br />+ Based on that we recommend you select a {@suggested_volume} pageviews/month plan. <br /><br /><a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) <> "?__team=#{@team.identifier}"}>Upgrade now</a>diff --git a/test/plausible_web/email_test.exs b/test/plausible_web/email_test.exsindex 3abbc86abc..43c6739a48 100644--- a/test/plausible_web/email_test.exs+++ b/test/plausible_web/email_test.exs@@ -164,7 +164,7 @@ defmodule PlausibleWeb.EmailTest doassert subject == "[Action required] You have outgrown your Plausible subscription tier"assert html_body =~ PlausibleWeb.TextHelpers.format_date_range(last_cycle)- assert html_body =~ "We recommend you upgrade to the 100k/mo plan"+ assert html_body =~ "We recommend you upgrade to the 100k pageviews/month plan"assert html_body =~ "your account recorded 32,100 billable pageviews"assert html_body =~@@ -225,7 +225,7 @@ defmodule PlausibleWeb.EmailTest doassert subject == "[Action required] Your Plausible dashboard is now locked"assert html_body =~ PlausibleWeb.TextHelpers.format_date_range(last_cycle)- assert html_body =~ "We recommend you upgrade to the 100k/mo plan"+ assert html_body =~ "We recommend you upgrade to the 100k pageviews/month plan"assert html_body =~ "your account recorded 32,100 billable pageviews"assert html_body =~diff --git a/test/workers/check_usage_test.exs b/test/workers/check_usage_test.exsindex 23ecd54392..df45b43d21 100644--- a/test/workers/check_usage_test.exs+++ b/test/workers/check_usage_test.exs@@ -319,7 +319,7 @@ defmodule Plausible.Workers.CheckUsageTest dohtml_body: html_body})- assert html_body =~ "We recommend you upgrade to the 100k/mo plan"+ assert html_body =~ "We recommend you upgrade to the 100k pageviews/month plan"endtest "clears grace period when plan is applicable again", %{user: user} dodiff --git a/test/workers/send_trial_notifications_test.exs b/test/workers/send_trial_notifications_test.exsindex 06dcad0996..9d27cae6a2 100644--- a/test/workers/send_trial_notifications_test.exs+++ b/test/workers/send_trial_notifications_test.exs@@ -186,7 +186,7 @@ defmodule Plausible.Workers.SendTrialNotificationsTest doemail =PlausibleWeb.Email.trial_upgrade_email(user, site.team, "today", usage, suggested_volume)- assert email.html_body =~ "we recommend you select a 10k/mo plan."+ assert email.html_body =~ "we recommend you select a 10k pageviews/month plan."endtest "suggests 100k/mo plan" do@@ -198,7 +198,7 @@ defmodule Plausible.Workers.SendTrialNotificationsTest doemail =PlausibleWeb.Email.trial_upgrade_email(user, site.team, "today", usage, suggested_volume)- assert email.html_body =~ "we recommend you select a 100k/mo plan."+ assert email.html_body =~ "we recommend you select a 100k pageviews/month plan."endtest "suggests 200k/mo plan" do@@ -210,7 +210,7 @@ defmodule Plausible.Workers.SendTrialNotificationsTest doemail =PlausibleWeb.Email.trial_upgrade_email(user, site.team, "today", usage, suggested_volume)- assert email.html_body =~ "we recommend you select a 200k/mo plan."+ assert email.html_body =~ "we recommend you select a 200k pageviews/month plan."endtest "suggests 500k/mo plan" do@@ -222,7 +222,7 @@ defmodule Plausible.Workers.SendTrialNotificationsTest doemail =PlausibleWeb.Email.trial_upgrade_email(user, site.team, "today", usage, suggested_volume)- assert email.html_body =~ "we recommend you select a 500k/mo plan."+ assert email.html_body =~ "we recommend you select a 500k pageviews/month plan."endtest "suggests 1m/mo plan" do@@ -234,7 +234,7 @@ defmodule Plausible.Workers.SendTrialNotificationsTest doemail =PlausibleWeb.Email.trial_upgrade_email(user, site.team, "today", usage, suggested_volume)- assert email.html_body =~ "we recommend you select a 1M/mo plan."+ assert email.html_body =~ "we recommend you select a 1M pageviews/month plan."endtest "suggests 2m/mo plan" do@@ -246,7 +246,7 @@ defmodule Plausible.Workers.SendTrialNotificationsTest doemail =PlausibleWeb.Email.trial_upgrade_email(user, site.team, "today", usage, suggested_volume)- assert email.html_body =~ "we recommend you select a 2M/mo plan."+ assert email.html_body =~ "we recommend you select a 2M pageviews/month plan."endtest "suggests 5m/mo plan" do@@ -258,7 +258,7 @@ defmodule Plausible.Workers.SendTrialNotificationsTest doemail =PlausibleWeb.Email.trial_upgrade_email(user, site.team, "today", usage, suggested_volume)- assert email.html_body =~ "we recommend you select a 5M/mo plan."+ assert email.html_body =~ "we recommend you select a 5M pageviews/month plan."endtest "suggests 10m/mo plan" do@@ -270,7 +270,7 @@ defmodule Plausible.Workers.SendTrialNotificationsTest doemail =PlausibleWeb.Email.trial_upgrade_email(user, site.team, "today", usage, suggested_volume)- assert email.html_body =~ "we recommend you select a 10M/mo plan."+ assert email.html_body =~ "we recommend you select a 10M pageviews/month plan."endtest "does not suggest a plan above that" do