Does having the name of a country on the geolocation-based HTML site harm SEO?

My website detects where the visitor comes from. If the visit is 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 am doing this for SEO purposes. However, I'm worried because I'm not sure how Google crawlers will interpret this. Will Google store [Company name] | Discounts in Guatemala and ignore [Company name] | Discounts in El Salvador, or vice versa? It will be equivalent to having a dynamic </code> and confuse Google about what <code><title></code> use?</p> <p>My goal is to have a high rank in Guatemala for consultation <code>Discounts in Guatemala</code> and also occupies a high place in El Salvador for consultation <code>Discounts in El Salvador</code>. But I am not sure if I am following the right approach by using a dynamic <code><title></code> depending on the location, or if I'm just confusing Google and maybe I should use this instead:</p> <pre><code>`<title>[Company name] | Discounts in El Salvador and Guatemala`

or

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

Thank you.