Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Added project-report template & fixed logo fallback on all others templates

Blue Mousec25986800f49
diff --git a/src/common/templates/en/customer_sign-up.html b/src/common/templates/en/customer_sign-up.html
index 4b2aefc62..9533439af 100644
--- a/src/common/templates/en/customer_sign-up.html
+++ b/src/common/templates/en/customer_sign-up.html
@@ -27,8 +27,8 @@
<tr>
<td align="center" valign="top">
<div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
- <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;">
- <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix Analytics" width="175" border="0" style="display: block; width: 175px;" />
+ <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;text-decoration: none;">
+ <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix" width="175" border="0" style="display: block; width: 175px; font-size: 32px;" />
</a>
<div style="height: 40px; line-height: 40px; font-size: 40px;">&nbsp;</div>
</td>
diff --git a/src/common/templates/en/gdpr_data_export.html b/src/common/templates/en/gdpr_data_export.html
index bed51910b..5b95b6b21 100644
--- a/src/common/templates/en/gdpr_data_export.html
+++ b/src/common/templates/en/gdpr_data_export.html
@@ -27,8 +27,8 @@
<tr>
<td align="center" valign="top">
<div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
- <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;">
- <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix Analytics" width="175" border="0" style="display: block; width: 175px;" />
+ <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;text-decoration: none;">
+ <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix" width="175" border="0" style="display: block; width: 175px; font-size: 32px;" />
</a>
<div style="height: 40px; line-height: 40px; font-size: 40px;">&nbsp;</div>
</td>
@@ -82,6 +82,7 @@
<b>Email address:</b>&nbsp;{{user.email}}<br />
<b>Email confirmed:</b>&nbsp;{{#if user.isActive}} Yes {{else}} No {{/if}}<br />
<b>Verification emails sent:</b>&nbsp;{{user.emailRequests}}<br />
+ <b>Summary report frequency:</b>&nbsp;{{user.reportFrequency}}<br />
<b>Account created at:</b>&nbsp;{{user.created}}<br />
<b>Account updated at:</b>&nbsp;{{user.updated}}<br />
<b>Last report generation time:</b>&nbsp;{{user.exportedAt}}
diff --git a/src/common/templates/en/mailaddress-change_confirmation.html b/src/common/templates/en/mailaddress-change_confirmation.html
index 3927b79ec..a0bad2138 100644
--- a/src/common/templates/en/mailaddress-change_confirmation.html
+++ b/src/common/templates/en/mailaddress-change_confirmation.html
@@ -27,8 +27,8 @@
<tr>
<td align="center" valign="top">
<div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
- <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;">
- <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix Analytics" width="175" border="0" style="display: block; width: 175px;" />
+ <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;text-decoration: none;">
+ <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix" width="175" border="0" style="display: block; width: 175px; font-size: 32px;" />
</a>
<div style="height: 40px; line-height: 40px; font-size: 40px;">&nbsp;</div>
</td>
diff --git a/src/common/templates/en/mailaddress-change_information.html b/src/common/templates/en/mailaddress-change_information.html
index 21516ed6d..6d0bf9dd6 100644
--- a/src/common/templates/en/mailaddress-change_information.html
+++ b/src/common/templates/en/mailaddress-change_information.html
@@ -27,8 +27,8 @@
<tr>
<td align="center" valign="top">
<div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
- <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;">
- <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix Analytics" width="175" border="0" style="display: block; width: 175px;" />
+ <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;text-decoration: none;">
+ <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix" width="175" border="0" style="display: block; width: 175px; font-size: 32px;" />
</a>
<div style="height: 40px; line-height: 40px; font-size: 40px;">&nbsp;</div>
</td>
diff --git a/src/common/templates/en/password-change_confirmation.html b/src/common/templates/en/password-change_confirmation.html
index 8f8aef23d..0e19a619a 100644
--- a/src/common/templates/en/password-change_confirmation.html
+++ b/src/common/templates/en/password-change_confirmation.html
@@ -27,8 +27,8 @@
<tr>
<td align="center" valign="top">
<div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
- <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;">
- <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix Analytics" width="175" border="0" style="display: block; width: 175px;" />
+ <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;text-decoration: none;">
+ <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix" width="175" border="0" style="display: block; width: 175px; font-size: 32px;" />
</a>
<div style="height: 40px; line-height: 40px; font-size: 40px;">&nbsp;</div>
</td>
diff --git a/src/common/templates/en/password-change_information.html b/src/common/templates/en/password-change_information.html
index a29d8eac1..c8bbb95c4 100644
--- a/src/common/templates/en/password-change_information.html
+++ b/src/common/templates/en/password-change_information.html
@@ -27,8 +27,8 @@
<tr>
<td align="center" valign="top">
<div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
- <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;">
- <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix Analytics" width="175" border="0" style="display: block; width: 175px;" />
+ <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;text-decoration: none;">
+ <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix" width="175" border="0" style="display: block; width: 175px; font-size: 32px;" />
</a>
<div style="height: 40px; line-height: 40px; font-size: 40px;">&nbsp;</div>
</td>
diff --git a/src/common/templates/en/password-change_request.html b/src/common/templates/en/password-change_request.html
index 665ca5985..fc009c261 100644
--- a/src/common/templates/en/password-change_request.html
+++ b/src/common/templates/en/password-change_request.html
@@ -27,8 +27,8 @@
<tr>
<td align="center" valign="top">
<div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
- <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;">
- <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix Analytics" width="175" border="0" style="display: block; width: 175px;" />
+ <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;text-decoration: none;">
+ <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix" width="175" border="0" style="display: block; width: 175px; font-size: 32px;" />
</a>
<div style="height: 40px; line-height: 40px; font-size: 40px;">&nbsp;</div>
</td>
diff --git a/src/common/templates/en/project-report.html b/src/common/templates/en/project-report.html
new file mode 100644
index 000000000..31119af85
--- /dev/null
+++ b/src/common/templates/en/project-report.html
@@ -0,0 +1,179 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Swetrix {{#ifEquals type "w"}}Weekly{{/ifEquals}}{{#ifEquals type "M"}}Monthly{{/ifEquals}} Project Report</title>
+ <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700" rel="stylesheet" />
+ </head>
+ <body style="margin: 0; padding: 0; background-color: #f0f4f7;">
+ <table cellpadding="0" cellspacing="0" border="0" width="100%" style="background: #f0f4f7; min-width: 340px; font-size: 1px; line-height: normal;">
+ <tr>
+ <td align="center" valign="top" bgcolor="#f0f4f7">
+ <!--[if (gte mso 9)|(IE)]>
+ <table border="0" cellspacing="0" cellpadding="0">
+ <tr><td align="center" valign="top" width="750"><![endif]-->
+ <table cellpadding="0" cellspacing="0" border="0" width="750" style="width: 100%; max-width: 750px; min-width: 340px; background: #f0f4f7;">
+ <tr>
+ <td width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
+ <td align="center" valign="top" style="background: #ffffff;">
+ <table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f0f4f7;">
+ <tr>
+ <td align="right" valign="top">
+ <div style="height: 25px; line-height: 25px; font-size: 23px;">&nbsp;</div>
+ </td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="center" valign="top">
+ <div style="height: 40px; line-height: 40px; font-size: 38px;">&nbsp;</div>
+ <a href="https://swetrix.com" target="_blank" style="display: block; max-width: 173px;text-decoration: none;">
+ <img src="file:///home/rand/Downloads/blue_logo.png" alt="Swetrix" width="175" border="0" style="display: block; width: 175px; font-size: 32px;" />
+ </a>
+ <div style="height: 40px; line-height: 40px; font-size: 40px;">&nbsp;</div>
+ </td>
+ </tr>
+ </table>
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="center" valign="top">
+ <font align="center" style="font-size: 52px; line-height: 55px; font-weight: 300; letter-spacing: -1.5px;">
+ <span
+ align="center"
+ style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; font-size: 44px; color: #1a1a1a;"
+ >
+ {{#ifEquals type "w"}}Weekly{{/ifEquals}}{{#ifEquals type "M"}}Monthly{{/ifEquals}} Report
+ </span>
+ </font>
+ <div style="height: 10px; line-height: 10px; font-size: 9px;">&nbsp;</div>
+ <font style="font-size: 36px; line-height: 45px; font-weight: 300; letter-spacing: -1px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #5e5e5e;
+ font-size: 30px;
+ line-height: 45px;
+ font-weight: 300;
+ letter-spacing: -1px;
+ "
+ >
+ For {{date}} period
+ </span>
+ </font>
+ <div style="height: 38px; line-height: 38px; font-size: 36px;">&nbsp;</div>
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="left" valign="top">
+ <font face="'Source Sans Pro', sans-serif" color="#7f7f7f" style="font-size: 17px; line-height: 23px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #7f7f7f;
+ font-size: 17px;
+ line-height: 23px;
+ "
+ >
+ <!-- <div style="height: 10px; line-height: 10px; font-size: 8px;">&nbsp;</div> -->
+ {{#each projects}}
+ <h3 style="margin-bottom: 5px;">{{name}}</h3>
+ <b>Unique visitors:</b> {{data.thisWeekUnique}} ({{#greater data.percChangeUnique 0}}<span style="color: #059669;">+{{data.percChangeUnique}}%</span>{{else}}<span style="color: #DC2626;">-{{data.percChangeUnique}}%</span>{{/greater}})<br />
+ <b>Pageviews:</b> {{data.thisWeek}} ({{#greater data.percChange 0}}<span style="color: #059669;">+{{data.percChange}}%</span>{{else}}<span style="color: #DC2626;">-{{data.percChange}}%</span>{{/greater}})<br /><br />
+ {{/each}}
+
+ You can manage email reports preferences in your <a href="https://swetrix.com/settings" target="_blank">account settings</a>.
+ </span>
+ </font>
+ <div style="height: 30px; line-height: 30px; font-size: 28px;">&nbsp;</div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ <table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100% !important; min-width: 100%; max-width: 100%; background: #f0f4f7;">
+ <tr>
+ <td align="center" valign="top">
+ <div style="height: 25px; line-height: 25px; font-size: 32px;">&nbsp;</div>
+ <table cellpadding="0" cellspacing="0" border="0" width="88%" style="width: 88% !important; min-width: 88%; max-width: 88%;">
+ <tr>
+ <td align="center" valign="top">
+ <font style="font-size: 17px; line-height: 20px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #3c4858;
+ font-size: 17px;
+ line-height: 20px;
+ "
+ >
+ <a
+ href="https://swetrix.com"
+ target="_blank"
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #3c4858;
+ font-size: 17px;
+ line-height: 20px;
+ text-decoration: none;
+ "
+ >
+ Terms of Service
+ </a>
+ </span>
+ </font>
+ <font face="'Source Sans Pro', sans-serif" color="#3c4858" style="font-size: 17px; line-height: 20px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #1a1a1a;
+ font-size: 17px;
+ line-height: 20px;
+ "
+ >
+ &nbsp;&nbsp;|&nbsp;&nbsp;
+ </span>
+ </font>
+ <font style="font-size: 17px; line-height: 20px;">
+ <span
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #1a1a1a;
+ font-size: 17px;
+ line-height: 20px;
+ "
+ >
+ <a
+ href="https://swetrix.com"
+ target="_blank"
+ style="
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
+ color: #3c4858;
+ font-size: 17px;
+ line-height: 20px;
+ text-decoration: none;
+ "
+ >
+ Privacy Policy
+ </a>
+ </span>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <div style="height: 25px; line-height: 25px; font-size: 28px;">&nbsp;</div>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td width="25" style="width: 25px; max-width: 25px; min-width: 25px;">&nbsp;</td>
+ </tr>
+ </table>
+ <!--[if (gte mso 9)|(IE)]>
+ </td></tr>
+ </table><![endif]-->
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>