Associate IP to existing users

Hello guys and I hope everyone of you is doing well!

Your software
My Mautic version is: 4.2
My PHP version is: 8.0
My Database type and version is: Mariadb 10.5

Your problem
I created a fresh install of Mautic 4.2 and I’m working to integrate it with an ecommerce store. I’m able now to retrieve my data from the store including email, names, phone and IP from which the order was placed. All of this is made through the mautic API with a basic auth.
The problem now is that I’m not able to associate that email to the user when he visited any page of my store. However, I’m seeing the user identified by his IP browsing some pages.

My install is like this:

In Mautic, I have the user as following:
Identified user (John Doe) - Email ( - IP A
Unidentified user (Anonymous) - NO EMAIL - IP A

Concretely, both of them are the same user. Is there a way to associate/merge them together. automatically?

I attached 3 screenshots with more details.

Thank you for the help.