Alerts
Hear when a number moves
An alert is a rule on your project's data that tells you when something moves: traffic jumps after a post, signups stop, or the site sends no data at all. You say what to watch, when it should fire, and who hears it: by email, in the bell in Viakite, in a Slack or Microsoft Teams channel, or on your webhooks. Alerts live in Analytics → Alerts.
Viakite checks every rule that is on once a minute. When a rule starts alerting, and again when it is back to OK, everyone it names hears about it. While it stays alerting, a Critical rule reminds them every hour and a Warning every 4 hours. A muted rule sends nothing.
Who can do what
| Permission | Lets you |
|---|---|
alerts.view | See the alerts, their state and history |
alerts.manage | Create, edit, preview, test, turn on and off, and delete alerts; add, edit, test and delete Slack and Teams channels |
alerts.mute | Mute and unmute alerts |
Write an alert
Click New alert. A new rule starts as "Visitors above 100 in 15 min", sent by email and in the bell to you. The line under the drawer's title always says in plain words what the rule does as you change it.
Name it
Give it a name people will understand when it lands in their inbox, such as "Signups dropped".
01 · Watch: what to measure
Leave Product on Analytics and pick a Measure:
Measure What it counts Visitors Different people in the window Pageviews Pages opened Events One event; type its name in Event name, such as checkout_startedConversions One goal; type an event name such as signup, or a page path starting with/, such as/thank-youRevenue Revenue sent with events Under Only when, add filters to narrow it, up to 20: a property (such as
sourceorcountry), is, is not, contains or doesn't contain, and a value (such asInstagram). With no filter, every visit counts.02 · Fire when: the condition
Pick when it fires:
Fires when it Means goes above The measure is over the threshold in the window drops below The measure is under the threshold in the window rises by % It grew by at least this percentage against what you pick in Compared with falls by % It fell by at least this percentage moves by % (either way) It grew or fell by at least this percentage has no data Nothing arrived in the window; useful to know your tracking broke The three percentage conditions compare with one of:
Compared with Means the usual level The same window on the same weekday, averaged over the last 4 weeks. See Unusual-traffic alerts the period before The window just before this one same time last week The same window exactly one week ago Then pick the Window, how far back each check looks: 5 min, 15 min, 30 min, 1 h, 6 h or 24 h.
Compare with the usual level or same time last week when your traffic has a weekly rhythm (quiet weekends), so a normal Saturday doesn't look like a fall.
Check the preview
Below the condition, the Last 7 days preview tries your rule on last week's data and says how many times it would have fired, with a column for every 6 hours. If it would have fired 40 times, people will learn to ignore it: raise the threshold or widen the window. If it would never have fired, check that it would catch the drop you care about.
03 · Tell: who hears it
- Severity: Info, Warning or Critical, so people know how fast to act.
- Send to: Email (to you and any address you add), Bell (the notifications in Viakite, for members) and Webhooks (every webhook subscribed to
alert.fired). - Slack and Teams: tick the channels to post to. They come from the Slack and Teams card on the Alerts page; see Send alerts to Slack or Teams. A rule can post only to Slack or Teams, with no email or bell.
- Who: tick Me, and add other Email addresses, separated by commas.
Click Create alert.
Examples
| You want to hear when | Rule |
|---|---|
| A post goes viral | Visitors · goes above 500 · 15 min |
| Signups stop | Conversions signup · drops below 1 · 24 h |
| Traffic falls off a cliff | Visitors · falls by 50% · same time last week · 1 h |
| Signups are unusually low today | Events signup · falls by 30% · the usual level · 24 h |
| Anything odd with traffic | Visitors · moves by 50% (either way) · the usual level · 6 h |
| Tracking breaks after a deploy | Pageviews · has no data · 1 h |
| Instagram traffic spikes | Visitors, only when source is Instagram · rises by 100% · the period before · 1 h |
Unusual-traffic alerts
Compare a percentage condition with the usual level to hear when a measure is out of the ordinary for this time of the week, such as "signups down 30% today". The usual level is the same window on the same weekday, averaged over the last 4 weeks: at 10:00 on a Monday with a 24 h window, it is the average of the 24 hours before 10:00 on the four Mondays before. Weeks with nothing in that window (before you installed Viakite, or while tracking was broken) are left out, and the rule needs at least 2 weeks with data before it can fire.
Unusual-traffic alerts are built not to repeat themselves:
- They tell you once when they fire, with the value and the usual level in the message ("30% below the usual level for this time of the week (100)").
- If the measure goes back to normal and crosses the line again soon after, it is recorded in the history but nobody is told until a whole window has passed since the last message (at least an hour, so 24 hours for a 24 h window).
- They send no reminders while they stay alerting, whatever the severity.
Send alerts to Slack or Microsoft Teams
Alerts post to a Slack or Teams channel through an incoming webhook URL that you make in that app. Add each channel once on the Alerts page, in the Slack and Teams card, then tick it in any alert.
Get the URL
- Slack: add the Incoming Webhooks app to your workspace, choose the channel, and copy the Webhook URL (it starts with
https://hooks.slack.com/services/). - Microsoft Teams: in the channel's … menu, open Workflows and pick Post to a channel when a webhook request is received, then copy the URL it gives you. An older Teams connector URL on
webhook.office.comworks too.
- Slack: add the Incoming Webhooks app to your workspace, choose the channel, and copy the Webhook URL (it starts with
Add it to Viakite
Click Add destination, pick Slack or Microsoft Teams, give it a name people will recognise (such as
#alerts), paste the URL and click Add destination. Viakite accepts only Slack and Teams addresses.The URL is stored encrypted and never shown again; the list shows only its host and last four characters, so you can tell two apart. To change it, choose Edit and paste a new one.
Send a test
Click Send test on the channel. A short message from Viakite appears in the channel. If Slack or Teams turns it down, you see "The app didn't accept the message": check that the webhook is still turned on in the app, or paste a fresh URL.
When an alert fires, recovers or is tested, the channel gets its title, the message (such as "Visitors on Shop was 12 in the last 1 hour, above 10.") and an Open in Viakite link. A project has up to 20 channels; an alert posts to up to 10. Deleting a channel takes it off every alert that used it; their email, bell and webhooks keep working.
Manage your alerts
The Alerts list shows each rule with its state, where it sends, and an on/off switch. The card's corner counts how many are alerting, have no data, or are ok. Click a rule to open its details and history.
From a rule's menu:
- Edit: change any part of it.
- Send test: sends a test message to the rule's channels now, Slack and Teams included, and tells you who it went to. Use it to check your email, chat channels and webhooks.
- Mute / Unmute: see below.
- Delete: stops the rule and deletes its history. To pause it and keep the history, turn it off with the switch instead.
Mute an alert
Mute a rule while you know it will be noisy: during a deploy, a sale or a holiday. A muted rule keeps checking and keeps its history; it just doesn't send anything. In Mute, choose:
- For 1 hour, 4 hours, 1 day or 1 week; or
- Every week, with a Quiet time of Nights, 22:00 to 08:00 or Weekends, in a time zone you choose (your project's by default).
Choose Unmute from the menu to end it early.