...
Info |
---|
This feature is available in only |
Y
Google captcha integration allow to prevent scripted submission of form on your storefront.
...
Create two content categories for each form with following contents. Replace {site key} and {secret key} placeholders with your values generated by reCaptcha
contentUri | content | notes |
---|
contactus_form_recaptcha_public_key | Code Block |
---|
| <script src='https://www.google.com/recaptcha/api.js'></script> |
<div class="g-recaptcha" data-sitekey="{site key}"></ |
div> | display reCaptcha on Contact Us form |
contactus_form_recaptcha_private_key | | Will be used during submit verification |
registration_form_recaptcha_public_key | Code Block |
---|
| <script src='https://www.google.com/recaptcha/api.js'></script> |
<div class="g-recaptcha" data-sitekey="{site key}"></ |
div> | display reCaptcha on Registration form |
registration_form_recaptcha_private_key | | Will be used during submit verification |
newsletter_form_recaptcha_public_key | Code Block |
---|
| <script src='https://www.google.com/recaptcha/api.js'></script> |
<div class="g-recaptcha" data-sitekey="{site key}"></ |
div> | display reCaptcha on Newsletter form |
newsletter_form_recaptcha_private_key | | Will be used during submit verification |
...
Add 'hl' parameter to force the reCaptcha widget to render in a specific language. This parameter is optional. If not provided then client locale will be used.
Code Block |
---|
|
<script src='https://www.google.com/recaptcha/api.js?hl=de'></script> |
...