In this article:
Getting site key
Enable Google reCAPTCHA in customer registration page
Spam bots are automated computer programs that find and submit fake account information to sign up forms on the internet. It is not worth panicking if you find your store receiving several fake signups. However, you should consider taking some action to prevent your website from massive fake signups. Inaccurate audience data could affect your marketing plan when you try to adapt your business for them.
This article shows you how you can enable Google reCAPTCHA in your store. reCAPTCHA requires visitors to check a protected reCAPTCHA box to complete the signup process. Since spam bots can’t access the checkbox, they can’t join your audience.
2. Getting site key
2.1 Go to Google reCAPTCHA > fill up the necessary fields > Submit.
💡 Tips : open image in new tab for clearer image
2.2 Get your site key for later use.
3. Enable reCAPTCHA in customer registration page
3.1 Go to EasyStore Admin > Channels > Online Store > Edit source > folder templates/customers/register.liquid > paste the following codes on the top.
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
Result as below:
3.2 Then, find < terms-policy.links >, at 2 lines below it, paste the following codes > change X to the site key you obtained earlier.
<p class="g-recaptcha" data-sitekey="X"></p>
3.3 Then, find < register/content_bottom >, paste the following codes above.
var captcha = grecaptcha.getResponse();
Result as below :
3.4 Save and done.