What is the correct SEO way of redirecting customers to other websites based on their IP? We currently have 2 websites, one is for brazil and one is for other Latin America. The 2 websites are different aside from language, hosted both on Shopify but not the same account, the brazil website only shows a few products and has a different design.
My method of redirecting is using GeoIP API, then show pop up asking them that there is a brazil website available and asking them if they want to proceed or stay.
Just want to ask what should we do for its SEO and if it will have a negative impact on our websites. Do we need to declare ref lang and country?