google captcha migration to v3. No more "No, I am not a robot"
If you did not have one, you will need to create an app here:
-
no more captcha. Verification happen under the hood
- before:
- after:
You can check google answer
I consider action: "contactPage", score > .8 to be a valid request. You can use your own
You can give the user ip as optional param. (I don't. Google has already enough data on us)
The front end code
The back end code
Yes I am using @laravelphp.
I also added a new page /contacted to have a better reporting from google analytics conversion for specific goals. Don't worry I protected it, you can't access it except you are coming from the contact form
Let me elaborate: Having a specific page where the user is being redirected is a good practice for analytics since you can then record the hits you are getting from that specific page (for me /contacted). You can have the same for user registration /registred
Wrap up
It was amazingly fast. The migration v2 -> v3 is straightforward. So if you did not, go ahead it is less than 5min.
Next step for me is to add it on my login form as well.
Happy coding!
Resources:
Top comments (0)