Skip to main content

Contact Form

The contact form lets visitors send you a message straight from your website. Every message is emailed to you and also lands in your Leads inbox, so nothing gets lost.

This page explains where the contact form settings are, how to switch on spam protection with Google reCAPTCHA, and what to do when visitors see an error while sending a message.

Where to find the settings​

  1. Open Settings in the menu of your Admin Portal.
  2. In the settings menu on the left, scroll down to the Other section.
  3. Click Contactformulier (the contact form settings). The name of this item is shown in Dutch, whatever language you use the Admin Portal in.
  4. Change what you need and click Save settings.

On this screen you will find:

  • Email: the email address that receives the messages from your contact form. This field is required. Without a valid address, visitors can't reach you.
  • Activate a Google reCAPTCHA validation to prevent spam messages: switches the extra spam check on or off.
  • API Site and API Secret: the two reCAPTCHA keys. These fields appear once you tick the reCAPTCHA box.

Spam protection​

Every contact form already has a basic protection against spam: a hidden field that people never see, but simple spam bots fill in. Messages with that field filled in are refused. For most websites this is enough.

If you still receive a lot of spam, you can add Google reCAPTCHA on top. reCAPTCHA checks in the background whether the visitor behaves like a real person. Visitors don't have to click on pictures or tick a box.

What you need: a reCAPTCHA v3 key pair​

SitePack works with Google reCAPTCHA v3 only. A v3 key comes as a pair, and you need both keys:

Key at GoogleField in SitePackWhat it does
Site keyAPI SiteIs placed in your web page, so the visitor's browser can get a reCAPTCHA token from Google.
Secret keyAPI SecretStays on our side and is used to check that token with Google.
Both keys, and only v3

Always fill in both keys of the same v3 key pair. If one of the two keys is empty, reCAPTCHA is not used, even with the box ticked: your form keeps working, but only with the basic protection of the hidden field. A key of another reCAPTCHA version (such as the v2 "I'm not a robot" checkbox) does not work at all: with such a key, every message sent through your contact form fails.

Creating a reCAPTCHA v3 key at Google​

  1. Go to the Google reCAPTCHA admin console and sign in with your Google account.
  2. Enter a name (label) for your website, for example the name of your shop.
  3. Choose reCAPTCHA v3 (also called score based). Do not pick v2.
  4. Add the domain name of your website, for example cyclestore.example. Add every domain name your website is reachable on.
  5. Accept the terms and submit the form.
  6. Google now shows a site key and a secret key. Keep this page open.

Switching reCAPTCHA on in SitePack​

  1. Open the contact form settings (see Where to find the settings).
  2. Tick Activate a Google reCAPTCHA validation to prevent spam messages.
  3. Paste the site key into API Site.
  4. Paste the secret key into API Secret.
  5. Click Save settings.
  6. Send a test message through the contact form on your website to check that it arrives.
Let Packy check it for you

Not sure whether everything is set up correctly? Ask Packy, the assistant in your Admin Portal, to check your contact form. Packy reads your contact form settings, tells you what is missing (for example a site key) and can fix it for you after you confirm the change.

Error messages and how to fix them​

"Please set a valid recaptcha response!"​

reCAPTCHA is switched on, but the visitor's browser did not get a reCAPTCHA token from Google, so it could not send one along with the message. When every visitor sees this message, the problem is the site key in API Site. Common causes:

  • The site key is not a v3 key, for example a key for the v2 "I'm not a robot" checkbox.
  • The site key was copied incorrectly.
  • Your website's domain name is not added to the key at Google.

When only a single visitor sees this message, their browser or an ad blocker may be blocking Google's reCAPTCHA. They can try again in another browser.

How to fix it:

  • Fill in the site key of a reCAPTCHA v3 key pair in API Site, check that your domain name is listed with the key at Google, and save, or
  • Switch reCAPTCHA off by unticking the box and saving. Your form then keeps the basic spam protection with the hidden field.

"Invalid captcha, please try again!"​

With reCAPTCHA switched on, this means the browser did send a token, but the check with Google did not pass. Common causes:

  • The site key and the secret key belong to two different key pairs.
  • The secret in API Secret was copied incorrectly.
  • Google considered the visit suspicious. When only one visitor sees this message once, they can simply try again.

How to fix it: check both keys against the key pair in the Google reCAPTCHA admin console, make sure they belong to the same v3 key, and save again. If you can't get it to work right away, switch reCAPTCHA off for now so visitors can reach you again.

Without reCAPTCHA, the same message means the hidden anti-spam field was filled in, which is what spam bots do. Real visitors normally never see it.

Frequently asked questions​

Do I need reCAPTCHA?​

No. Without reCAPTCHA your contact form still has the hidden field that stops simple spam bots. Only switch reCAPTCHA on when you keep getting spam.

I ticked the reCAPTCHA box but filled in only one key. What happens?​

reCAPTCHA is not used until both keys are filled in. Your contact form keeps working with the basic protection of the hidden field. Fill in the missing key to switch the extra check on, or untick the box.

I switched reCAPTCHA off. Are my keys gone?​

No. Switching the check off keeps the keys you filled in. When you tick the box again, they are used again.

Can I use my existing reCAPTCHA v2 key?​

No. SitePack only works with reCAPTCHA v3 keys. Create a new v3 key at Google as described above.

Can I see which language a message came in through?​

Yes. Once your website has an extra language, every email says in which language the visitor was reading your website. Link a location to each language and the email names that location too. See Location per language.

Where do the messages from my contact form go?​

They are emailed to the address in the Email field and are also saved in your Leads inbox.