I’m wondering how to install reCAPTCHA in the best possible way (to stop Contact Form 7 spam). I know there are plugins, but I want to have as few of those as possible.
I speculate that the hook element is the way to go, but I would like some confirmation on this before I waste an hour or two jumping down the wrong rabbit hole. I know that Google Analytics can be added with the hook function.
Nothing built-in for this so I’d say that plugin solution is your best bet.
GA can be added using hooks as it’s specified to be added into a hook.
Did you find any custom code that you’d like to try? If you link me to it with the instruction from the code author then I can let you know if hooks will work.
I’m guessing it would likely need to be added using functions though.