analytics/lib/plausible_web/templates/email/spike_notification.html.eex

18 lines
519 B
Elixir
Raw Normal View History

2020-12-11 14:58:58 +03:00
There are currently <%= @current_visitors %> visitors on <%= link(@site.domain, to: "https://" <> @site.domain) %>.
<%= if Enum.count(@sources) > 0 do %>
2020-12-11 18:01:09 +03:00
<br />
<br />
2020-12-14 11:29:10 +03:00
The top sources for current visitors:<br />
2020-12-11 18:01:09 +03:00
<%= for %{name: source, count: visitors} <- @sources do %>
2020-12-14 11:29:10 +03:00
<%= source %> - <%= visitors %> visitor<%= if visitors > 1, do: "s" %><br />
2020-12-11 18:01:09 +03:00
<% end %>
<% end %>
2020-12-11 14:58:58 +03:00
2020-12-11 12:50:44 +03:00
<%= if @link do %>
2020-12-11 14:58:58 +03:00
<br /><br />
View dashboard: <%= link(@link, to: @link) %>
2020-12-11 12:50:44 +03:00
<% end %>
<br /><br />
Congrats on the spike in traffic!