Lavorare con Google reCAPTCHA

Purtroppo reCaptcha sta causando molti problemi. Nella maggior parte dei casi l'unico modo efficace è escludere reCaptcha dal blocco aggiungendo data-cmp-ab="1" al <script ...>.

Blocco manuale

Aggiungi le seguenti modifiche al tuo codice reCaptcha:

Codice originale:

<script src="https://www.google.com/recaptcha/api.js" async defer></script>

Codice modificato:

<script type="text/plain" data-cmp-vendor="s1409" class="cmplazyload" data-cmp-src="https://www.google.com/recaptcha/api.js" async defer></script>

Blocco automatico

Nella maggior parte dei casi il blocco automatico funzionerà perfettamente con Google reCaptcha. In alcuni casi l'ordine di caricamento di reCaptcha può causare problemi e reCaptcha non appare sul tuo sito web. Se così fosse, verifica se i domini sono assegnati (vedi qui). Se tutti i domini sono assegnati, Google reCaptcha è presente nel tuo elenco fornitori e reCaptcha continua a non funzionare, prova a passare al rendering esplicito:

<script type="text/plain" data-cmp-vendor="s1409" class="cmplazyload" data-cmp-src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script>
<script type="text/javascript">
 var onloadCallback = function() {
 grecaptcha.render('id of the recaptcha element', {  'sitekey' : 'your_site_key'   });
 };
</script>

We do our best to keep this purely informative documentation up to date. However, if you notice that any of these guides need a little touch-up, let us know!