Why I replaced the Google Form on my contact page
This site is a handful of simple hand-written pages and a folder of product pages. I put it online by dragging the folder into Cloudflare Pages. That keeps it fast and easy to look after. It also leaves one awkward question: where does the contact form send its messages?
For a long time the answer was a Google Form embedded in the page. It worked, but I was never happy with it. This post is about why I replaced it with a contact form of my own, and what that taught me.
What was wrong with the Google Form
The old form did its job. People could write to me and I received what they wrote. But three things bothered me.
- It looked like a Google Form. It did not look like the rest of my site, and visitors could tell.
- It brought Google’s scripts onto my page. I did not like loading someone else’s code on a site that is meant to be small and quiet.
- Replies ended up as rows in a spreadsheet. Every message was stored somewhere I then had to remember to check.
None of this was a disaster. Together, it was enough to make me want something better.
What I wanted instead
I wrote a short list before I started.
- A form that looks like the rest of the site.
- Messages that arrive in my normal inbox, next to everything else.
- Nothing stored. No database, no spreadsheet, no log of what people wrote.
- Protection from spam, so my inbox does not fill up with rubbish.
- A form that costs nothing to run.
The new form now does all of that. It is hosted on Cloudflare, alongside the site.
Privacy first
This is the part I care about most. When you send me a message through the form, it is emailed to me. That is all. I do not keep a copy in a database, and I do not keep a log of messages. Once it has reached my inbox, the message exists in one place only.
That is how I would want a contact form to behave if I were the one writing. You are sending a note to a person, not feeding a data collection system. Less stored means less to leak, less to look after, and less I could ever be asked to hand over.
The form needs your name, your email address and your message. Your email address is there so that I can reply to you. Nothing else is asked.
Spam
Any public form attracts spam within days. I did not want to make real people prove they are human by squinting at blurry pictures, so I added protection that stays out of the way. A real visitor should never notice it. I will not describe how it works. The less I say about it, the less help it gives to the people trying to get around it.
What matters is the result. Genuine messages get through, and the rubbish mostly does not.
The lesson: make failures easy to diagnose
My first live test went wrong. I sent a message, and I landed on the sorry page. Everything had looked right, and I had no idea why it failed.
The problem was not the failure. Failures happen. The problem was that every kind of failure looked exactly the same. A rejected check, a missing field and a problem sending the email all took me to the same page, and left the same blank trail. I could see that something had broken, but not where.
The fix was to make each failure say which stage went wrong. Now, when something fails, the address of the sorry page carries a short note naming the stage. I can look at the address bar and know where to start, without digging through dashboards.
I was careful about one thing. Those notes only name a stage. They never include anything private: nothing about me, and nothing about the visitor.
I now think this is a rule for any small tool I build. Give every failure a name from the very first day. You will need it the first time you test it live, and you will need it far more when something breaks months later and you have forgotten how it works.
What I would tell someone doing the same
- Decide what you will not keep before you decide what you will. Storing nothing is the easiest privacy promise to keep.
- Pick the simplest version that can work. The fewer moving parts, the fewer ways for it to fail without telling you.
- Test it live as soon as you can, with a real message.
- Make every failure say why.
See it working
The result is a form that keeps no database and no log of messages. It costs nothing to run, and it lands in the same inbox as everything else. If you want to see it, the form is at the bottom of my homepage.