enterprise
The Enterprise mode provides enhanced security features, advanced analytics, and better customization options for businesses
Google reCAPTCHA Enterprise provides enhanced security features, advanced analytics, and better customization options for businesses. It offers improved bot detection, detailed risk analysis, and enterprise-grade support.
Provider Setup
To use Enterprise features, you need to enable the isEnterprise
flag in the provider:
import React from 'react';
import { GoogleReCaptchaProvider } from '@google-recaptcha/react';
export const App = () => (
<GoogleReCaptchaProvider type='v3 | v2-checkbox' siteKey='your_enterprise_site_key' isEnterprise>
...
</GoogleReCaptchaProvider>
);
Usage
V3 Enterprise
Enterprise mode enhances v3 reCAPTCHA with additional risk assessment capabilities and detailed analytics:
import React from 'react';
import { useGoogleReCaptcha } from '@google-recaptcha/react';
const App = () => {
const googleReCaptcha = useGoogleReCaptcha();
const onReCaptchaVerify = async () => {
if (!googleReCaptcha.executeV3) {
console.log('Execute recaptcha not available');
return;
}
const token = await googleReCaptcha.executeV3('some action');
};
return <button onClick={onReCaptchaVerify}>verify</button>;
};
V2 Checkbox Enterprise
Enterprise mode for v2 checkbox provides enhanced security and analytics:
import React from 'react';
import { GoogleReCaptchaCheckbox } from '@google-recaptcha/react';
const App = () => (
<GoogleReCaptchaCheckbox
action='some action'
onChange={(token) => console.log(token)}
/>
);