Customer tag depending on the language domain of the site

Good afternoon!

Is it possible to assign a tag when creating a new client in shopify, depending on which language subfolder the client was created from? That is, if the client is located on our site https://bim-ba.shop/fr - it is assigned a tag “FR”, if created from https://bim-ba.shop/it - “IT”

@bim-ba-shop You can add tags to group, search, filter, and make bulk changes to items. Click Here.

@DelightCart

The thing is that Shopify draws conclusions about the client’s language based on its ip, but in fact this is not quite correct, we want to make it so that when we create a client we put a tag of the language in which it is on our site. That is, in this way we will understand in what language it is better to communicate with the user in marketing mailings.

And one more question, maybe you can help me: is it possible to automatically assign tags to customers when they are in a certain segment?

For example, we have a segment by EN language, when a new customer is created with this parameter he enters the segment and gets a tag. - Is it possible?

Accessing data that comes from the storefront can be tricky because it’s not always saved in a way that is easy to understand. You might have luck with this field, customer.locale: https://shopify.dev/api/admin-graphql/2022-07/objects/Customer#field-customer-locale

Regarding your question about segments, are you using the new Customer Segment feature, or are you using something else for “segments”?