How this all works
Setting it up
1Run the database migration
- Supabase dashboard → SQL Editor → New query.
- Paste the whole of
migration-signals.sqland press Run. - It is safe to run more than once. Until it has been run, the Measured signals panel on a report will fail when you load a file.
2Install the collector
- You need Node 20 or newer. Check with
node -v. - Unzip
audit-tools.zipanywhere, then inside that folder runnpm installand thennpx playwright install chromium. - Skipping the second command still works — you lose the phone-width measurements, and the tool says so rather than going quiet.
3Optional: a free Google key
export PAGESPEED_API_KEY=your-keyraises the rate limit.- It works without one. The key is free from the Google Cloud console (PageSpeed Insights API, 25,000 calls a day).
Running a report
1Collect the measurements
node audit/run.mjs https://their-site.co.uk- It writes
audit-signals.jsoninto whatever folder you ran it from. --pages /,/services,/contactaudits those pages instead of discovering them. Without it, pages come from the sitemap, then the home page’s links, capped at twelve.
2Load it here
- Open the report, find Measured signals in the right-hand column, and choose the JSON file.
- The signals appear under the areas they inform. Loading a second run replaces the first rather than adding to it.
- Nothing is scored and no comment is written. The measurements are evidence; every slider is still set by you.
3Say what you could not check
- Each area has a line for it. An area left blank used to mean three different things — not looked at, not applicable, or the site would not load — and all three read as the same dash.
- What the collector could not reach is listed in the signals panel.
Things worth knowing
1Two kinds of question
- Most areas are a slider, because there is a real range between a business with four reviews and one with four hundred.
- Five are yes / sometimes / no buttons instead — replies to reviews, details that agree, analytics, getting hold of you, and structured data. A slider set to 7 on “do they reply” is a number nobody can defend over 6 or repeat next quarter.
- Both store a number, so the grade works the same way. The client sees the word — “Sometimes” rather than “5/10”.
- Put the detail in the comment: replies to the five-star ones, nothing on the two bad ones from March.
2The grade is calculated, never chosen
- A pillar is the weighted mean of the areas scored under it; the four pillars then count equally, whatever number of areas sit under each.
- Unscored areas are left out rather than counted as nought, so half a finished report does not read as a failing business.
3Booking times
- We present Monday to Friday (bank holidays aside) at 09:30, 11:00, 13:30 and 15:00.
- The booking page draws the whole working day and offers only those times. Closed slots say unavailable; a slot only says booked when there is a real booking in it.
- To change the pattern, the three lists are at the top of
build.py:PRESENT_DAYS,PRESENT_SLOTSand the day bounds.
4The first live collector run
- Run it against tractiontactics.com before any client, and check the speed numbers look sane.
- The PageSpeed part was tested against a constructed response, not a recorded one — if Google nests a field differently you would get blanks where the numbers should be, and every test would still pass.
- If you see a finding you think is wrong, it probably is. Say what it was and it goes into the test fixture so it cannot come back.
Emails
What every letter says, and a way to read one before a client does. Nothing here is attached to a particular client.
Test an email
What the emails say
A blank line starts a new paragraph. **like this** is bold.