How to Create reCAPTCHA Keys in Google Cloud Console
If you’re setting up reCAPTCHA for your PrestaShop store, you must generate a reCAPTCHA key in Google Cloud Console. This key will help verify user interactions and protect your site from bots and spam.
This guide will walk you through the entire process in simple and easy-to-follow steps.
NOTE
There is no limit on the number of reCAPTCHA keys that you can create for a Google Cloud project. It is best to create one reCAPTCHA key per website.
We recommend creating separate reCAPTCHA keys for staging and production environments.
Step 1: Access Google Cloud Console
Open your web browser and go to Google Cloud Console.
Sign in with your Google account (if you aren’t already signed in).
Step 2: Select or create a project
🔹 If you already have a project:
- Check if your project is selected at the top of the page.
- If it’s not selected, click the project selector dropdown and choose your project.
🔹 If you don’t have a project yet:
1. Click the project selector dropdown.
2. Click New Project.
3. Enter a project name (e.g., My PrestaShop Store).
4. Click Create.
Step 3: Enable reCAPTCHA Enterprise API
1. In Google Cloud Console, open the menu (☰) in the top left corner.
2. Go to APIs & Services > Library.
3. In the search bar, type reCAPTCHA Enterprise API.
4. Click Enable.
Step 4: Create a new reCAPTCHA Key
1. Go to the reCAPTCHA page: https://console.cloud.google.com/security/recaptcha
2. Click Create Key.
3. In the Display Name field, enter a name for your key (e.g., PrestaShop reCAPTCHA).
4. Under Choose platform type, select Website.
Step 5: Add your website domain
1. In the Domain list section, click Add a domain.
2. Enter your website domain (e.g., example.com). You don’t need to add subdomains (e.g., sub.example.com is automatically included).
3. (Optional) Add more domains if needed (up to 250 domains per key).
4. Click Done.
Step 6: Choose your reCAPTCHA type
🔹 For reCAPTCHA v3 (score-based, invisible to users):
- This is the default option.
- If you want to allow AMP pages, expand the Web application firewall (WAF), Domain verification, AMP pages, and challenge section then enable the AMP toggle.
🔹 For reCAPTCHA v2 (checkbox challenge):
1. Expand Web application firewall (WAF), Domain verification, AMP pages, and challenge section.
2. Turn on Use checkbox challenge.
3. Select the Challenge security level:
- Harder difficulty (more secure but more challenges for users).
- Easiest challenge difficulty (fewer challenges but lower security).
Step 7: Create & save your reCAPTCHA Key
1. Click Create Key.
2. Your new reCAPTCHA key will be displayed.
3. Copy and save this key – you will need it for your PrestaShop store.
⚠️ Warning:
- You cannot recover a deleted key, so keep it safe!
- reCAPTCHA keys cannot be migrated to another Google Cloud project.