Having the name of a country on the HTML site based on geolocation harms SEO?

My website detects where the visitor is from. If the visit comes from Guatemala, the title is:

[Company name] | Discounts in Guatemala

If the visit is from El Salvador, the title is:

[Company name] | Discounts in El Salvador

I do it for SEO purposes. However, it worries me because I do not know how Google's crawlers will interpret that. Is the Google Store [Company name] | Discounts in Guatemala and ignore [Company name] | Discounts in El Salvadoror vice versa? Will be equivalent to having a dynamic </code> and confuse Google about what <code><title></code> use?</p> <p>My goal is to be prominently in Guatemala for the request <code>Discounts in Guatemala</code> and also high ranking in El Salvador for the query <code>Discounts in El Salvador</code>. But I'm not sure I'm following the right approach using a dynamic approach. <code><title></code> depending on the location, or if I'm just confusing Google and maybe I should use it instead:</p> <pre><code>`<title>[Company name] | Discounts in El Salvador and Guatemala`

or

`[Company name] | Discounts in Guatemala and El Salvador`

Thank you.