1- Create your v3 Site & Secret Key on google console.

2- Add following code and script to the header :

Copy to Clipboard

3- Add following script to the footer secction :

Copy to Clipboard

4- Add followng line to the end of form before</form>

Copy to Clipboard

To test your answer from google server you can add following code where you have the form :

Copy to Clipboard