-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Team Deletions] deletion e-mails #6624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aerosol
wants to merge
10
commits into
team-sites-deletions-schedule-fsm
from
team-sites-deletions-emails
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c0c29e6
Add new e-mail templates
aerosol 4ce906b
wip
aerosol be370e8
make e-mail test assertions resistant to formatting
aerosol f767dfe
Interpolate constants in email subjects
aerosol 07169f6
capture IO in dry run
aerosol 8ab38d8
Format
aerosol 024fa99
Advance deletion schedule before sending email
aerosol c2ac0f5
Use `Date.compare/2`
aerosol d4d6604
Preload team using a join
aerosol dd375f0
Update lib/workers/accept_traffic_until_notification.ex
aerosol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
14 changes: 11 additions & 3 deletions
14
lib/plausible_web/templates/email/approaching_accept_traffic_until.html.heex
This file contains hidden or 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,9 +1,17 @@ | ||
| Your sites are still sending us data, but your account is no longer active. We'll stop counting your stats {@time}. | ||
| Your sites are still sending us data, but your account is no longer active. We'll stop counting new stats {@time}. | ||
| <br /><br /> | ||
| We're writing because we think losing your privacy-first analytics is a bad trade, not just an admin notice. Without Plausible, you're likely back to Google Analytics: cookie banners, complex reports, and your visitors' data going to Google. | ||
| We're writing because we think losing your privacy-first analytics is a bad trade, not just an admin notice. Without Plausible, you're likely back to Google Analytics: cookie banners, complex reports and your visitors' data going to Google. | ||
| <br /><br /> | ||
| Plausible is still the same thing it was when you signed up. Lightweight. No cookies. No personal data. One clear dashboard. EU-hosted infrastructure. We're a small independent team and subscriptions are what keeps us running. | ||
| Plausible is still the same thing it was when you signed up. Lightweight. No cookies. No personal data. One clear dashboard. EU-hosted infrastructure. We're a small independent team and subscriptions are what keep us running. | ||
| <br /><br /> | ||
| If you'd like to keep counting your stats without tracking your visitors, <a href={plausible_url() <> "?__team=#{@team.identifier}"}>start a Plausible subscription</a>. | ||
| <%= if @deletion_date do %> | ||
| <br /><br /> | ||
| If you don't subscribe, we'll permanently delete your Plausible dashboards and all their stats on {date_format( | ||
| @deletion_date | ||
| )}. This cannot be undone. <br /><br /> If you don't plan to subscribe, | ||
| <a href="https://plausible.io/docs/export-stats">export your stats</a> | ||
| before then. | ||
| <% end %> | ||
| <br /><br /> | ||
| Not sure it's the right fit? Just reply to this email and we'll help you figure it out. |
20 changes: 20 additions & 0 deletions
20
lib/plausible_web/templates/email/deletion_full_notice_email.html.heex
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <%= if @category == :expired_trial do %> | ||
| Your Plausible trial ended a while ago and your account has remained inactive since then. | ||
| <% else %> | ||
| Your Plausible subscription lapsed a while ago and your account has remained inactive since then. | ||
| <% end %> | ||
| <br /><br /> | ||
| We don't believe analytics companies should keep website analytics data indefinitely after an account becomes inactive. That's why we'll permanently delete the Plausible dashboards and stats for your | ||
| <strong>{@team.name}</strong> | ||
| team on {date_format(@deletion_date)}. This cannot be undone. | ||
| <%= if @sites_summary.domains != [] do %> | ||
| <br /><br /> This covers {domains_list(@sites_summary.domains, @sites_summary.more_count)}. | ||
| <% end %> | ||
| <br /><br /> | ||
| Plausible is still the simple, privacy-first alternative to Google Analytics you signed up for. No cookies. No personal data. One clear dashboard. Independent and EU-hosted. | ||
| <br /><br /> | ||
| <a href={choose_plan_url(@team)}>Subscribe</a> | ||
| before {date_format(@deletion_date)} to keep your dashboards and historical stats. <br /><br /> | ||
| If you don't plan to subscribe, | ||
| <a href="https://plausible.io/docs/export-stats">export your stats</a> | ||
| before then. <br /><br /> If you have any questions, just reply to this email and we'll help. |
12 changes: 12 additions & 0 deletions
12
lib/plausible_web/templates/email/deletion_reminder_email.html.heex
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| This is your final reminder. We'll permanently delete the Plausible dashboards and stats for your | ||
| <strong>{@team.name}</strong> | ||
| team on {date_format(@deletion_date)}. | ||
| <%= if @sites_summary.domains != [] do %> | ||
| <br /><br /> This covers {domains_list(@sites_summary.domains, @sites_summary.more_count)}. | ||
| <% end %> | ||
| <br /><br /> This cannot be undone. <br /><br /> | ||
| <a href={choose_plan_url(@team)}>Subscribe</a> | ||
| before {date_format(@deletion_date)} to keep your dashboards and historical stats. <br /><br /> | ||
| If you don't plan to subscribe, | ||
| <a href="https://plausible.io/docs/export-stats">export your stats</a> | ||
| before then. <br /><br /> If you have any questions, just reply to this email and we'll help. |
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.