-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use anchor tags in email templates (#4690)
* replace styled_link and unstyled_link components with plan anchor tag in email templates * format * change formatting for better whitespace * use phx-no-format on bad anchor
- Loading branch information
1 parent
7458d72
commit 7a91ff1
Showing
26 changed files
with
80 additions
and
175 deletions.
There are no files selected for viewing
33 changes: 11 additions & 22 deletions
33
lib/plausible_web/templates/email/check_stats_email.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,20 @@ | ||
Plausible is tracking your website stats without compromising the user experience and the privacy of your visitors. | ||
<br /><br /> Here's how to get even more out of your Plausible experience: <br /><br /> * | ||
<.unstyled_link href="https://plausible.io/docs/custom-event-goals"> | ||
Set up custom events | ||
</.unstyled_link> | ||
and | ||
<.unstyled_link href="https://plausible.io/docs/pageview-goals">pageview goals</.unstyled_link> | ||
to count actions you want your visitors to take<br /> | ||
<a href="https://plausible.io/docs/custom-event-goals">Set up custom events</a> and | ||
<a href="https://plausible.io/docs/pageview-goals">pageview goals</a> to count actions you want your visitors to take<br /> | ||
* Running an ecommerce? Assign monetary values to custom events to track | ||
<.unstyled_link href="https://plausible.io/docs/ecommerce-revenue-tracking"> | ||
revenue attribution | ||
</.unstyled_link> | ||
<a href="https://plausible.io/docs/ecommerce-revenue-tracking">revenue attribution</a> | ||
<br /> * Follow the journey from a landing page to conversion with | ||
<.unstyled_link href="https://plausible.io/docs/funnel-analysis">funnel analysis</.unstyled_link> | ||
<a href="https://plausible.io/docs/funnel-analysis">funnel analysis</a> | ||
<br /> * | ||
<.unstyled_link href="https://plausible.io/docs/manual-link-tagging"> | ||
<a href="https://plausible.io/docs/manual-link-tagging"> | ||
Tag your social media, email and paid links | ||
</.unstyled_link> | ||
to see which campaigns are responsible for most conversions<br /> * | ||
<.unstyled_link href="https://plausible.io/docs/custom-props/introduction"> | ||
Send custom properties | ||
</.unstyled_link> | ||
to collect data that we don't track automatically<br /> * Explore our | ||
<.unstyled_link href="https://plausible.io/docs/stats-api">stats API</.unstyled_link> | ||
to retrieve your stats and our | ||
<.unstyled_link href="https://plausible.io/docs/sites-api">sites API</.unstyled_link> | ||
to create and manage sites programmatically<br /> | ||
</a> to see which campaigns are responsible for most conversions<br /> | ||
* <a href="https://plausible.io/docs/custom-props/introduction">Send custom properties</a> | ||
to collect data that we don't track automatically <br /> * Explore our | ||
<a href="https://plausible.io/docs/stats-api">stats API</a> to retrieve your stats and our | ||
<a href="https://plausible.io/docs/sites-api">sites API</a> to create and manage sites programmatically<br /> | ||
<br /><br /> | ||
<.unstyled_link href={plausible_url()}>View your Plausible dashboard now</.unstyled_link> | ||
<a href={plausible_url()}>View your Plausible dashboard now</a> | ||
for the most valuable traffic insights at a glance. <br /><br /> | ||
Do reply back to this email if you have any questions or need some guidance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
You've activated your free 30-day trial of Plausible, a simple and privacy-friendly website analytics tool. | ||
<br /><br /> | ||
<.unstyled_link href={"#{plausible_url()}/sites/new"}>Click here</.unstyled_link> | ||
<a href={"#{plausible_url()}/sites/new"}>Click here</a> | ||
to add your website URL, your timezone and install our one-line JavaScript snippet to start collecting visitor statistics. | ||
<br /><br /> Do reply back to this email if you have any questions or need some guidance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
lib/plausible_web/templates/email/drop_notification.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
We've recorded <%= @current_visitors %> visitors on | ||
<.unstyled_link href={"https://" <> @site.domain}><%= @site.domain %></.unstyled_link> | ||
in the last 12 hours. | ||
<a href={"https://" <> @site.domain}><%= @site.domain %></a> in the last 12 hours. | ||
<%= if @dashboard_link do %> | ||
<br /><br /> View dashboard: | ||
<.unstyled_link href={@dashboard_link}><%= @dashboard_link %></.unstyled_link> | ||
<br /><br /> View dashboard: <a href={@dashboard_link}><%= @dashboard_link %></a> | ||
<br /><br /> Something looks off? Please | ||
<.unstyled_link href={@installation_link}>review your installation</.unstyled_link> | ||
<a href={@installation_link}>review your installation</a> | ||
to verify that Plausible has been integrated correctly. | ||
<% end %> |
3 changes: 1 addition & 2 deletions
3
lib/plausible_web/templates/email/existing_user_invitation.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<%= @invitation.inviter.email %> has invited you to the <%= @invitation.site.domain %> site on <%= Plausible.product_name() %>. | ||
<.unstyled_link href={Routes.site_url(PlausibleWeb.Endpoint, :index)}>Click here</.unstyled_link> | ||
to view and respond to the invitation. The invitation | ||
<a href={Routes.site_url(PlausibleWeb.Endpoint, :index)}>Click here</a> to view and respond to the invitation. The invitation | ||
will expire 48 hours after this email is sent. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
lib/plausible_web/templates/email/invitation_accepted.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
<%= @invitation.email %> has accepted your invitation to <%= @invitation.site.domain %>. | ||
<.unstyled_link href={ | ||
Routes.site_url(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain) | ||
}> | ||
Click here | ||
</.unstyled_link> | ||
to view site settings. | ||
<a href={Routes.site_url(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain)}>Click here</a> to view site settings. |
7 changes: 1 addition & 6 deletions
7
lib/plausible_web/templates/email/invitation_rejected.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
<%= @invitation.email %> has rejected your invitation to <%= @invitation.site.domain %>. | ||
<.unstyled_link href={ | ||
Routes.site_url(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain) | ||
}> | ||
Click here | ||
</.unstyled_link> | ||
to view site settings. | ||
<a href={Routes.site_url(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain)}>Click here</a> to view site settings. |
8 changes: 3 additions & 5 deletions
8
lib/plausible_web/templates/email/new_user_invitation.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
<%= @invitation.inviter.email %> has invited you to join the <%= @invitation.site.domain %> site on <%= Plausible.product_name() %>. | ||
<.unstyled_link href={ | ||
<a href={ | ||
Routes.auth_url( | ||
PlausibleWeb.Endpoint, | ||
:register_from_invitation_form, | ||
@invitation.invitation_id | ||
) | ||
}> | ||
Click here | ||
</.unstyled_link> | ||
to create your account. The link is valid for 48 hours after this email is sent. <br /><br /> | ||
}>Click here</a> to create your account. The link is valid for 48 hours after this email is sent. | ||
<br /><br /> | ||
Plausible is a lightweight and open-source website analytics tool. We hope you like our simple and ethical approach to tracking website visitors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
lib/plausible_web/templates/email/ownership_transfer_accepted.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
<%= @invitation.email %> has accepted the ownership transfer of <%= @invitation.site.domain %>. They will be responsible for billing of it going | ||
forward and your role has been changed to <b>admin</b>. | ||
<.unstyled_link href={ | ||
Routes.site_url(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain) | ||
}> | ||
Click here | ||
</.unstyled_link> | ||
to view site settings. | ||
<a href={Routes.site_url(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain)}>Click here</a> to view site settings. |
7 changes: 1 addition & 6 deletions
7
lib/plausible_web/templates/email/ownership_transfer_rejected.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
<%= @invitation.email %> has rejected the ownership transfer of <%= @invitation.site.domain %>. | ||
<.unstyled_link href={ | ||
Routes.site_url(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain) | ||
}> | ||
Click here | ||
</.unstyled_link> | ||
to view site settings. | ||
<a href={Routes.site_url(PlausibleWeb.Endpoint, :settings_general, @invitation.site.domain)}>Click here</a> to view site settings. |
18 changes: 9 additions & 9 deletions
18
lib/plausible_web/templates/email/ownership_transfer_request.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<%= @invitation.inviter.email %> has requested to transfer the ownership of <%= @invitation.site.domain %> site on <%= Plausible.product_name() %> to you. | ||
<%= if @new_owner_account do %> | ||
<.unstyled_link href={Routes.site_url(PlausibleWeb.Endpoint, :index)}> | ||
Click here | ||
</.unstyled_link> | ||
<a href={Routes.site_url(PlausibleWeb.Endpoint, :index)}>Click here</a> | ||
to view and respond to the invitation. | ||
<% else %> | ||
<.unstyled_link href={ | ||
Routes.auth_url(PlausibleWeb.Endpoint, :register_form, invitation: @invitation.invitation_id) | ||
}> | ||
Click here | ||
</.unstyled_link> | ||
to create your account. <br /><br /> | ||
<a | ||
phx-no-format | ||
href={ | ||
Routes.auth_url(PlausibleWeb.Endpoint, :register_form, | ||
invitation: @invitation.invitation_id | ||
) | ||
} | ||
>Click here</a> to create your account. <br /><br /> | ||
Plausible is a lightweight and open-source website analytics tool. We hope you like our simple and ethical approach to tracking website visitors. | ||
<% end %> |
2 changes: 1 addition & 1 deletion
2
lib/plausible_web/templates/email/site_member_removed.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
An administrator of <%= @membership.site.domain %> has removed you as a member. You won't be able to see the stats anymore. | ||
<br /><br /> | ||
<.unstyled_link href={Routes.site_url(PlausibleWeb.Endpoint, :index)}>Click here</.unstyled_link> | ||
<a href={Routes.site_url(PlausibleWeb.Endpoint, :index)}>Click here</a> | ||
to view your sites. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 11 additions & 15 deletions
26
lib/plausible_web/templates/email/site_setup_success_email.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
Congrats! We've recorded the first visitor on | ||
<.unstyled_link href={"https://#{@site.domain}"}><%= @site.domain %></.unstyled_link>. Your traffic is now being counted without compromising the user experience and privacy of your visitors. | ||
<br /><br /> Do check out your | ||
<.unstyled_link href={"#{plausible_url()}/#{URI.encode_www_form(@site.domain)}"}> | ||
easy to use, fast-loading and privacy-friendly dashboard | ||
</.unstyled_link>. <br /><br /> Something looks off? Take a look at our | ||
<.unstyled_link href="https://plausible.io/docs/troubleshoot-integration"> | ||
installation troubleshooting guide | ||
</.unstyled_link>. <br /><br /> | ||
<a href={"https://#{@site.domain}"}><%= @site.domain %></a>. Your traffic is now being counted without compromising the user experience and privacy of your visitors. | ||
<br /><br /> | ||
Do check out your <a href={"#{plausible_url()}/#{URI.encode_www_form(@site.domain)}"}>easy to use, fast-loading and privacy-friendly dashboard</a>. | ||
<br /><br /> | ||
Something looks off? Take a look at our <a href="https://plausible.io/docs/troubleshoot-integration">installation troubleshooting guide</a>. | ||
<br /><br /> | ||
<%= if not Plausible.ce?() and Plausible.Users.on_trial?(@user) do %> | ||
You're on a 30-day free trial with no obligations so do take your time to explore Plausible. Here's how to get | ||
<.unstyled_link href="https://plausible.io/docs/your-plausible-experience"> | ||
the most out of your Plausible experience | ||
</.unstyled_link>. <br /><br /> | ||
You're on a 30-day free trial with no obligations so do take your time to explore Plausible. | ||
Here's how to get <a href="https://plausible.io/docs/your-plausible-experience">the most out of your Plausible experience</a>. | ||
<br /><br /> | ||
<% end %> | ||
PS: You can import your historical Google Analytics stats into your Plausible dashboard. | ||
<.unstyled_link href="https://plausible.io/docs/google-analytics-import"> | ||
Learn how our GA importer works | ||
</.unstyled_link>. <br /><br /> | ||
<a href="https://plausible.io/docs/google-analytics-import">Learn how our GA importer works</a>. | ||
<br /><br /> | ||
<%= unless Plausible.ce?() do %> | ||
Do reply back to this email if you have any questions. We're here to help. | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
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. | ||
<br /><br /> | ||
|
||
<.unstyled_link href={ | ||
PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan) | ||
}> | ||
<a href={PlausibleWeb.Router.Helpers.billing_url(PlausibleWeb.Endpoint, :choose_plan)}> | ||
Upgrade now | ||
</.unstyled_link> | ||
</a> | ||
<br /><br /> | ||
We will keep recording stats for <%= @extra_offset %> days to give you time to upgrade. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.