Lesson 3: Check it like a stranger
Whoever built the site can no longer see it. A stranger sees everything: a button that does nothing, a phone number with a digit missing, a form that sends to nowhere. This lesson is a fifteen-minute check, before the site goes out into the world.
What to know first
- Environment variables
- Settings the site reads from the server and not from the code, like a key of an outside service. That way the key is not in the files you upload.
On a phone, for real
Most visitors will come from a phone, and the preview on a computer does not always show what they will see. Most tools have a link to the preview that you can open on the phone itself.
Open it on the phone, scroll from top to bottom, and tap everything that looks like it can be tapped.
The checklist
Go through the list in order. Every item that does not pass gets written down, and later gets one fix message.
- Every button and every link: tap it, and check that it gets to the right place.
- Phone, email and address: make sure every digit is correct. A mistake here costs you requests that never arrive.
- The text: read it out loud. A sentence that sounds odd out loud sounds odd to a visitor too.
- The name on the browser tab: this is also the name that shows up on Google and when the link is shared on WhatsApp. It should be the name of the project, and not the default name of the tool.
- Images: every image loads and fits the project.
- Square brackets: look for any [fill in] that is left, and fill it in.
- The form: there is one clear form, with a name, a phone number or an email, and room for a message.
The form, the place where sites break
Inside the tool a form looks perfect: you press send and a thank-you message appears. But on a site built with an AI tool, the message often is not sent anywhere. The form is shown, and it is not connected to anything.
When the site goes live with us, the launch page gives a text to paste that asks the tool to connect every form to our forms service, and the messages arrive by email. At this stage it is enough to make sure the page has one clear form.
Keys do not stay in the code
When a site is connected to an outside service, for example maps or payments, the tool sometimes writes the key of the service straight into the code. A key like that is like a password: anyone who sees the code can use it at the expense of whoever opened the service.
A one-page site with no outside services does not need keys at all. To make sure, send the tool this message:
Check whether the code contains keys, passwords or tokens of outside services. If it does, list them, and move them to environment variables instead of writing them in the code.
Try it now
Open the first version on a phone, go through the checklist, and send the tool one fix for each item that did not pass. After each fix, check only that item again.
Every item on the list passed on a real phone, the tab shows the name of the project, and not a single [fill in] is left.
If it did not work
- The link to the preview does not open on the phone? In some tools you need to turn on sharing, or sign in to the same account on the phone too.
- The tool changes things you did not ask for? Start the message with the words "Change only", and then write the one thing.
- A test message from the form does not arrive anywhere? That is expected at this stage. The connection to email happens when the site goes live, in lesson 5.
Check yourself
Answer in your head first, then open. After all the answers, a star is waiting on the route.
Why check on a real phone and not only in the preview on a computer?
Because most visitors come from a phone, and the view on a computer does not always show overflow to the side, small buttons or text that is too small.
Why can a form that shows a thank-you message still be broken?
Because the thank-you message is shown even when the message is not sent anywhere. A form works only when it is connected to a service that sends the messages.
What is the problem with a key of a service written inside the code?
Anyone who sees the code can use the key. Its place is in environment variables, which stay on the server.
Common questions
How much checking is enough for a one-page site?
What is on the list. A site like this does not need automated tests, it needs one eye that did not build it. If a friend is willing to take a look, even better.
Continue from here
Not now? The next lesson will come by email
One lesson every two days, except on Saturdays, until the end of the course. You can stop from any email.
The address is used only to send the lessons, and it is deleted when you stop. Privacy policy