Configure google reCaptcha in Magento 2

It provides greater security on Magento CAPTCHA, verifies without possible user errors by entering a series of letters and numbers, and encourages the conversion of the cart without further obstacles to complete a purchase.

To Configure google reCaptcha follow below steps:

Step 1: Login to admin panel and go to Store -> Settings -> Configuration.

Step 2: Select Security and Click on Google reCaptcha.

Step 3: Expand the General section and enter the following generated keys for the specific reCAPTCHA type to be enabled:

  1. Google API website key
  2. Google API secret key

Step 4: Expand the Backend section:

  1. Enable: Set to Yes.
  2. Theme: Choose Light or Dark.
  3. Size: Choose Normal or Compact.

Backend you will get Google reCaptcha like this:

Step 5: Expand the Frontend section:

  1. Enable: Set to Yes.
  2. reCaptcha Type: Select reCaptcha type to reCaptcha v2.
  3. Theme: Choose Light or Dark.
  4. Size: Choose Normal or Compact.

By default, reCAPTCHA is enabled for these pages.

  • Use in login
  • Use in Forgot password
  • Use in Contact
  • Use in Create user
  • Use in Review
  • Use in PayPal PayflowPro payment form
  • Use in Newsletter
  • Use in Send To Friend

Frontend you will get Google reCaptcha like this:

Step 6: Click on Save Config button.