How Do You Test GA4 Custom Insights and Traffic Alerts Before You Need Them?
Most teams set up a traffic alert once, see the green check mark in the settings screen, and move on. Then, months later, a tracking tag breaks on a Friday night, sessions fall to almost nothing, and nobody hears about it until Monday’s report. The alert was there. It just never fired, or it fired to an inbox nobody reads, or its threshold was so loose that a 60% drop looked normal to it.
An alert you have never seen fire is a guess, not a safety net. The fix is simple: make it fire on purpose, in a controlled way, before you rely on it. This guide shows how to do that for Google Analytics 4 custom insights, using a test property and planned test traffic, so you know exactly what happens when a real drop or spike arrives.
What are GA4 custom insights, and why do they need testing?
Custom insights are GA4’s built-in alerts. You pick a metric (for example sessions, active users or a key event), a condition, and how often GA4 should check it. When the condition is met, the insight appears on the Insights dashboard and, if you turn it on, GA4 sends an email. According to Google’s Analytics Insights help page, you can create up to 50 custom insights per property, and you can evaluate them hourly, daily, weekly or monthly. Hourly evaluation is only available for web data.
The problem is that nothing in the setup screen tells you whether the alert is useful. Common ways an untested insight fails:
- The condition is too loose. A rule like “sessions decrease by more than 80%” only fires once tracking is almost completely gone.
- The condition is too tight. A rule that fires on every quiet Sunday trains people to ignore the email.
- The scope is wrong. The insight watches all traffic, so a full outage in one country or on one key page is hidden by the total.
- The email goes nowhere. Notifications are off, or they go to a former colleague or a shared inbox with no owner.
- The timing is wrong. A daily check on a problem you needed to see within an hour arrives too late to help.
Each of these is easy to fix once you see it. You only see it by making the alert fire.
Why can’t you just wait for real traffic to test your alerts?
You can, but real traffic is a poor test signal. You do not control when it drops or spikes, so you cannot plan a test, and when a real drop happens you are learning about the alert at the worst possible time. Real traffic also changes for many reasons at once (seasons, campaigns, holidays), which makes it hard to tell whether the alert fired for the right reason.
Controlled test traffic flips this around. You decide the baseline level, you decide the day it drops or jumps, and you decide how big the change is. Then you check whether the alert caught it, how long it took, and who got the email.
Do this in a separate test property, not your production property. Test traffic sent to a live property mixes with real data and stays in your reports. A dedicated GA4 test property with the same custom insights as production keeps your real numbers clean and lets you break things freely.
What kinds of alerts are worth testing?
Not every alert needs a full test. Focus on the ones that protect revenue or data quality. This table lists the common types, what each catches, and how to trigger it on purpose in a test property.
| Alert type | What it should catch | How to trigger it in a test | What to check |
|---|---|---|---|
| Traffic drop (% decrease) | Broken tag, site outage, consent banner blocking tracking | Run a steady baseline, then cut one weekday to 0% | Fires within the expected check window |
| Traffic spike (% increase) | Bot traffic, a campaign going live, duplicate tags | Run a steady baseline, then raise volume sharply for a day | Fires once, not every hour |
| Key event drop | Broken form, checkout or sign-up event | Send page views but stop sending the key event | Event-level rule fires while total traffic looks fine |
| Country or city drop | Geo blocking, CDN issue, local outage | Remove one country from the test traffic | Scoped insight fires; property-wide insight may not |
| Source / medium change | Broken UTMs, lost referral or AI assistant traffic | Switch the UTM source or medium in the test traffic | Channel-scoped insight fires |
| Anomaly (“has anomaly”) | Unusual movement without a fixed threshold | Needs a longer baseline before a change | Only judge it after the property has history |
How do you set up a safe test environment?
Before sending any traffic, build the place it will go. The setup takes about half an hour.
- Create a GA4 test property with a web data stream. Name it clearly, for example “Example.com – ALERT TEST”, so nobody mistakes it for production.
- Copy your production alert rules. Recreate each custom insight you depend on with the same metric, condition, frequency and scope. The goal is to test the rules you actually use.
- Turn on email notifications and send them to the same people and inboxes as production. You are testing the delivery path too.
- Add one extra rule that should never fire during the test, for example a very large spike threshold. If it fires, your test traffic was bigger than you planned.
- Write down the plan: baseline level, test day, size of the change, and the time you expect each alert to arrive.
If you have not used a test property before, our earlier guide on testing a GA4 or Looker Studio dashboard before real traffic walks through the same setup for reports.
How do you generate a controlled baseline and a planned drop?
You need two things from your test traffic: a steady, believable baseline for long enough that the alert has something to compare against, and a change you schedule ahead of time. The Google Analytics Traffic service at TrafficBot sends GA4 events to the property you choose through residential IPs, so it can produce both.
A typical test plan looks like this:
- Baseline volume: set events per day high enough to look like a small real site. TrafficBot notes that below 100 events per day may not look natural, so a few hundred a day is a sensible start.
- Natural variation: use the Fluctuate Event Rate setting (0 to 50%) so daily totals are not identical. A perfectly flat line is not a realistic test of a % change rule.
- Planned drop: use the Daily Rates sliders (one per weekday, 0 to 100%) to set one chosen weekday to 0% or 10%. That gives you a sharp, scheduled drop on a known day, then a return to normal.
- Planned spike: raise the events per day for one day, or set one weekday higher than the rest, to test increase rules.
- Scoped changes: target countries and cities, page URLs and UTM source / medium separately, so you can drop just one country, one page or one channel and check scoped insights.
- Clean stop: set an End Date so the test campaign switches itself off when the test is over.
Timezone matters more than people expect. Set the campaign timezone to the same timezone as the GA4 property, otherwise your “Tuesday” drop may straddle two GA4 days and look like two smaller drops.
What does a 3-week test schedule look like?
| Period | Test traffic | What you are checking |
|---|---|---|
| Week 1 | Steady baseline with light fluctuation | Data arrives in the test property; no alerts fire |
| Week 2 | Baseline, then one weekday set to 0% | Drop insights fire; spike insights stay quiet |
| Week 3, day 1-2 | One country or one UTM source removed | Scoped insights fire; property-wide insights may not |
| Week 3, day 3 | One day at about 3x the baseline | Spike insights fire once; the never-fire rule stays quiet |
| End | Campaign ends on its End Date | Final review of what fired, when and to whom |
If you only have time for one test, run week 1 and week 2. A traffic drop alert is the one most teams rely on, and it is the one most often set up wrong.
How do you test a key event alert without touching total traffic?
Some of the most expensive failures do not change total traffic at all. The page still loads and the page views still arrive, but the form submit or purchase event stops firing after a release. A sessions-based alert will never notice.
To test this, create a custom insight on the key event itself (for example a sign-up or lead event), not on sessions. Then, in your test property, send normal page views but stop the key event for a planned day, while total traffic stays at its baseline. The insight on the key event should fire; the sessions insight should stay quiet. If only the sessions alert exists, you have no protection against the most common tracking break.
You can send the key events for this test any way that suits your setup, for example a small script that uses the GA4 Measurement Protocol, or a staging copy of the site with the real tag. The point is to control when the event is present and when it is missing.
How do you test alerts in tools other than GA4?
Many teams also watch traffic outside GA4: server log alerts, CDN dashboards, uptime tools, or a second analytics tool. Events sent straight to GA4 will not show up in those, because no browser visits the site.
For those tools you need real page loads. Browser Simulation opens a real Chromium browser, visits your base URL, scrolls, dwells and follows internal links, so the visits reach your server logs and any analytics tool on the page. With sessions per day from 1 to 5,000, weekday sliders and an end date, the same baseline-then-drop pattern works there too. Point it at a staging site where possible, and keep the volume modest: the aim is a clear signal, not load testing.
Checklist: how do you know your traffic alerts actually work?
Run through this list for every alert you depend on. If you cannot tick an item, the alert is not finished.
- The alert exists in a test property with the same metric, condition, frequency and scope as production.
- A planned drop of the size you care about made it fire, and you saw the email.
- It fired within the time you need (hourly for revenue-critical web pages, daily for the rest).
- A normal quiet day (for example a weekend) did not make it fire.
- A key event alert fired when the event stopped, while total traffic stayed flat.
- A country, page or channel drop fired the scoped insight it was meant to fire.
- The email reached a named person who knows what to do next.
- The test campaign has ended and the test property is clearly labelled, so nobody reads it as real data.
- The final thresholds are copied back into the production property.
What should you change after the test?
Most first tests show at least one alert that needs adjusting. The usual changes are:
- Tighten loose thresholds. If a 100% drop on one day was needed before anything fired, lower the % to something you would actually want to hear about.
- Add scoped insights. If a single-country drop was hidden in the total, add an insight for each market that matters.
- Move critical checks to hourly. If a daily email arrived the next morning, add an hourly insight for your most important web pages or events.
- Fix the delivery path. Make sure the email goes to an owner, not a shared inbox, and that the owner knows the alert exists.
- Treat anomaly rules carefully. “Has anomaly” insights learn from history, so a short test on a new property is not a fair test of them. Use clear % rules as your main safety net and anomaly rules as a bonus.
Then repeat the test after any big change: a new tag setup, a site migration, a consent banner change or a move to server-side tagging. Alerts drift out of date quietly, the same way tags do.
Is it worth the effort?
A full test takes a few weeks of light test traffic and an hour or two of your time. The cost of an alert that does not fire is days of lost data, broken attribution and decisions made on numbers that were wrong. For most sites, that trade is easy.
If you want to try the method without committing to a plan, new TrafficBot accounts get 100 free credits for Google Analytics Traffic, which is enough to check that test events reach your test property. You can see the services at trafficbot.co. Whatever tool you use, the rule is the same: make every alert fire once on purpose, before the day you need it.
