My method of running the recaptcha script is as follows:
let data = {
action: 'homepage'
};
grecaptcha.ready(() => {
grecaptcha.execute('RECAPTCHASITEKEY', data).then((token) => {
recaptcha_token = token;
});
});
It's functioning properly, but the action keeps getting recorded as submit in the reports. Is there something else I should be doing?