Site settings
Email reports and alerts
The Reports tab (weekly summary and traffic spike emails) and the Alerts tab (custom emails when a goal is completed or a payment arrives).
AnalyticsX can email you about a website in two ways:
- Reports (
/settings/reports): two ready-made emails you switch on or off, a weekly summary and a traffic spike warning. - Alerts (
/settings/alerts): your own rules that send an email each time a goal is completed or a payment arrives, with a subject and message you write.
All of these emails go to the website's owner, at the email address of the owner's account. A member can turn reports on or create alerts, but the emails still go to the owner, not to the member. Viewers see both tabs read-only.
Reports
Open Site settings › Reports. The line at the top says who the emails go to: your own address if you are the owner, otherwise "the website's owner". Each report has a switch; it saves as soon as you flip it. Both are off until you turn them on.
Reports are checked by a job that runs at the start of every hour.
Weekly summary
Visitors, revenue and top sources, every Monday at 9 AM in the website's timezone (set under General › Timezone).
The email covers the previous full week, Monday to Sunday, in the website's timezone. It contains:
- Visitors for the week, with the change against the week before (for example "+12% on the week before", "no change" or "new").
- Revenue for the week, counted the same way as on your dashboard (your renewal, refund and product filter settings apply). It is in the website's currency, and the line only appears once Stripe is connected or a payment has been recorded.
- Top sources: the three sources that brought the most visitors.
- An Open dashboard button.
The subject looks like "example.com: 1,234 visitors last week". If sending fails, it is tried again on the next hourly run.
Traffic spike
An email when traffic is 3× higher than usual, with the source that caused it. At most once a day.
Every hour, AnalyticsX compares the number of visitors in the last hour with the usual number of visitors per hour over the 7 days before. An email is sent when both are true:
- the last hour had at least 3 times the usual hourly visitors, and
- the last hour had at least 20 visitors.
A website younger than a week is compared with the hours it has existed. After a spike email, no other spike email is sent for that website for 24 hours.
The email shows Visitors in the last hour, Usual for an hour and Most visitors came from, with a See who's on the site button that opens the real-time view. The subject looks like "Traffic spike on example.com: 4.5× the usual".
Turning reports off
Flip the switch off on the Reports tab. Every report email also has a Turn off email reports link at the bottom that opens this tab.
Alerts
Open Site settings › Alerts, or click Alerts in the sidebar. An alert is a rule: "when this happens, send this email". Alerts send an email each time:
- a chosen goal is completed, or
- any payment arrives from Stripe (see Connect Stripe).
The note at the top of the tab repeats who receives the emails and the daily limit.
Create an alert
Click New alert. The Create alert dialog has three columns.
1. When this happens
- Trigger: one of your goals (listed as "Goal: Signup") or Any payment. If you have no goals yet, add them on the Dashboard tab (see Dashboard settings).
- Alert name: up to 80 characters. If you leave it empty, it is named after the trigger, for example "New signup!".
2. Send this email
- Subject: required, up to 200 characters.
- Message (Markdown): up to 4,000 characters.
- Variables, click to insert: click a variable to insert it at the cursor in the message.
Live preview shows the email filled in with sample data (John Doe, United States, x.com, Desktop / Chrome), so you can check it before saving.
Click Create alert (or Save alert when editing). New alerts are on straight away.
A new alert starts with this subject and message, which you can change:
New {{goal.name}} from {{visitor.country}}
**{{visitor.name}}** just completed **{{goal.name}}**!
- Country: {{visitor.country}}
- Referrer: {{visitor.referrer}}
- Device: {{visitor.device}} / {{visitor.browser}}
Writing the message
The message supports a small part of Markdown:
**text**makes text bold.- A line starting with
-or*becomes a bullet point. - Every other non-empty line is a paragraph.
Line breaks in the subject are turned into spaces.
Template variables
Write a variable as {{name}}, for example {{visitor.country}}. They are filled in when the email is sent.
| Group | Variable | What it contains |
|---|---|---|
| Goal | {{goal.name}} |
The goal's name. For payment alerts, "Payment". |
| Goal | {{goal.timestamp}} |
When it happened, in the website's timezone, like "Nov 4, 4:40 PM". |
| Visitor | {{visitor.name}} |
The name your site passed with identify, or "A visitor". |
| Visitor | {{visitor.email}} |
The email your site passed with identify, or empty. |
| Location | {{visitor.country}} |
Country name, or "Unknown". |
| Location | {{visitor.region}} |
Region, or empty. |
| Location | {{visitor.city}} |
City, or empty. |
| System | {{visitor.device}} |
Device type, like "Desktop". |
| System | {{visitor.browser}} |
Browser, like "Chrome". |
| System | {{visitor.os}} |
Operating system. |
| Source | {{visitor.referrer}} |
Referring domain, or "Direct". |
| Source | {{visitor.utm_source}} |
UTM source of the visit, or empty. |
| Source | {{visitor.utm_medium}} |
UTM medium of the visit, or empty. |
| Source | {{visitor.utm_campaign}} |
UTM campaign of the visit, or empty. |
| URL | {{url.path}} |
The page path where the goal was completed. Goal alerts only. |
| URL | {{url.hostname}} |
The hostname of that page. Goal alerts only. |
| Website | {{website.domain}} |
The website's domain. |
| Payment | {{payment.amount}} |
The amount with currency, like "$49.00". Payment alerts only. |
Visitor details come from the visit in which the goal was completed, or from the visitor linked to the payment.
Note: A variable that doesn't apply, or that is misspelled, stays in the email exactly as written (for example
{{payment.amount}}in a goal alert, or{{url.path}}in a payment alert). The same happens with visitor variables for a payment that isn't linked to a visitor. Use only the variables that fit the trigger.
To learn how to name visitors, see Visitors and visitor profiles and the identify call in
Tracker JavaScript API.
What the alert email looks like
The email's heading is your subject, followed by your message and an Open dashboard button. The footer names the alert and the website and has a Change or turn off alerts link to the Alerts tab.
Limits
- Up to 20 alert rules per website. New alert is disabled when you reach the limit.
- Each alert sends at most 50 emails per day (days are counted in UTC). After that, it skips until the next day.
- A goal alert fires every time the goal is completed, so an alert on a goal that is completed often can reach the daily limit quickly.
Manage alerts
Each alert in the list shows its name, its trigger ("When a payment arrives" or the goal name), and how many emails it has sent and when the last one went out (or "nothing sent yet").
- Use the switch to turn an alert off or on without deleting it.
- Edit opens the same dialog.
- Delete, then Delete alert, removes the rule.
Below the list, Usage shows how many of the 20 rules you use and how many alert emails have been sent in total.
If you delete a goal, alerts on it show "a deleted goal" and stop sending. Edit them to pick another goal, or delete them.
Pause all alert emails
To stop alert emails from all your websites at once without changing the rules, turn off Email notifications in your account settings (see Account and sign-in). Because alerts go to the owner, it is the owner's setting that counts. This switch only affects alerts; report emails are controlled on the Reports tab.
Common questions
Why didn't I get an alert or report?
- Check that the alert or report switch is on.
- Emails go to the owner's address. If you are a member, the owner receives them.
- For alerts: check Email notifications in the owner's account settings, and the 50-per-day limit.
- For goal alerts: the goal must be on, and the visit must not be excluded (see Exclusions).
- For the weekly summary: it is sent on Monday at 9 AM in the website's timezone, not yours.
- For traffic spikes: the last hour needs at least 20 visitors and 3 times the usual hourly number.
- Check your spam folder.
Can I send alerts to someone else?
Not yet. Alerts and reports go to the website owner's address only.