Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add Plausible EE plugs in CE (#4694)

ruslandoga87b65aefd71d
diff --git a/lib/plausible_web/mjml/templates/stats_report.mjml.eex b/lib/plausible_web/mjml/templates/stats_report.mjml.eex
index 4310ca0048..0c47804d2e 100644
--- a/lib/plausible_web/mjml/templates/stats_report.mjml.eex
+++ b/lib/plausible_web/mjml/templates/stats_report.mjml.eex
@@ -24,9 +24,21 @@
<mj-body>
<mj-section padding="25px 0 0 0">
<mj-column>
+ <%= if Plausible.ee?() do %>
<mj-text mj-class="text-sm" height="40px">
<%= Plausible.product_name() %>
</mj-text>
+ <% else %>
+ <mj-text mj-class="text-sm">
+ <%= Plausible.product_name() %>
+ </mj-text>
+ <mj-divider />
+ <mj-text mj-class="text-sm" line-height="1.5">
+ Plausible CE is funded by our cloud subscribers. If you <a href="https://plausible.io/?utm_medium=email&utm_source=CE">enjoy using Plausible</a>
+ and know someone who might benefit from it, please spread the word.
+ </mj-text>
+ <mj-divider />
+ <% end %>
<mj-text mj-class="text-lg">
<%= @site.domain %>
</mj-text>
diff --git a/lib/plausible_web/templates/email/spike_notification.html.heex b/lib/plausible_web/templates/email/spike_notification.html.heex
index d0c031e198..458b4c6af5 100644
--- a/lib/plausible_web/templates/email/spike_notification.html.heex
+++ b/lib/plausible_web/templates/email/spike_notification.html.heex
@@ -12,3 +12,8 @@ There are currently <%= @current_visitors %> visitors on
<br /><br /> View dashboard: <a href={@link}><%= @link %></a>
<% end %>
<br /><br /> Congrats on the spike in traffic!
+<%= if Plausible.ce? do %>
+ <br /><br /> Plausible CE is funded by our cloud subscribers. If you
+ <a href="https://plausible.io/?utm_medium=email&utm_source=CE">enjoy using Plausible</a>
+ and know someone who might benefit from it, please spread the word.
+<% end %>