I am in the process of upgrading to the enterprise and which the instructions I was reading is just changing api.js to enterprise.js and adding .enterprise in the script. I am trying to have this load on all pages just like v3 was doing but when I load the page I get a ReferenceError saying "grecaptcha is not defined". Did I miss something in the document?
NEW CODE
<script src="https://www.google.com/recaptcha/enterprise.js?render=6LfMoRsTAAAAADgeUdXgVORH6yH3eFKXz3ayq7VX"></script>
<script>
grecaptcha.enterprise.ready(function() {
grecaptcha.enterprise.execute('6LfMoRsTAAAAADgeUdXgVORH6yH3eFKXz3ayq7VX', {action: 'Home'}).then(function(token) {
});
});
</script>
OLD CODE
<script src="https://www.google.com/recaptcha/api.js?render=6LfMoRsTAAAAADgeUdXgVORH6yH3eFKXz3ayq7VX"></script>
<script>
grecaptcha.ready(function() {
grecaptcha.execute('6LfMoRsTAAAAADgeUdXgVORH6yH3eFKXz3ayq7VX', {action: 'Home'}).then(function(token) {
});
});
</script>