How to access Customer Language Object?

Sammy_B
Tourist
4 0 8

Hi,

I have a multilingual shop and would like to automatically tag my customers based on what language they are visiting my store, so the data could be sent to klaviyo.

I can filter my customer list by language through the shopify interface, however when I look at tagging apps or the shopify api I can't seem to access the customer language attribute.

Any suggestions ?

Replies 19 (19)

LenaWei
Visitor
2 0 3

I am also having this issue, we want to send out invoices to multilingual customers, but the invoice language only changes if the customer has already placed an order, and acquired a "customer language attribute"

We have no idea how to manually add a language to a customer, otherwise our only solution would be to buy a fake product with the customers' email, so it is in the system. That is obviously a massive pain.

Waffle
Visitor
2 0 0

Same trouble ! Any solution ? 🙂

I basically need it to have that information in mailchimp when sending newsletters !

 

Thanks !

Klemens
Tourist
3 0 1

I have the exact same problem 

JimmyRittenborg
Shopify Partner
9 1 5

My merchants are having the same issue.


– Jimmy, Founder & Web Engineer at Rittencom, Shopify Partner since 2014

Jojoloco
Visitor
2 0 0

any solution?

shopidopi
Visitor
2 0 0

Same issue, would be great if there was a solution to this.

lagunasolutions
Shopify Partner
10 0 4

Gariep
Excursionist
29 0 9

I have same problem as well, 

 

Liquify
Shopify Expert
95 0 52

I can't find a way to do this as Shopify doesn't store lang on the customer but on the order.

 

There's a bunch of problems with multilingual and email marketing as well as invoicing.

 

At best we get language right for 50% of customers.

 

★★★ Need help setting up your Shopify store? Hire me here: https://liquify.design ★★
lagunasolutions
Shopify Partner
10 0 4

For some reason, the customer local is stored in the customer data by shopify. But it is only available from the graphQL api https://shopify.dev/api/admin-graphql/2021-10/objects/customer#field-customer-locale and I don't think klaviyo is getting that information. The Mailchimp app does now.

JimmyRittenborg
Shopify Partner
9 1 5

Hi @lagunasolutions,

Where've you seen the new Mailchimp app do this? I've tried to find evidence of this, without any luck though and it doesn't really seems to happen here 🤔


– Jimmy, Founder & Web Engineer at Rittencom, Shopify Partner since 2014

JimmyRittenborg
Shopify Partner
9 1 5

Finally

Customer country auto-populated on signup

Update: If Shopify infers the country of a customer browsing the online store, and they sign up for newsletter or for a new account, Shopify will save the country as part of the default address of the new customer account.

For the merchant, this enables improved customer segmentation. For the customer, Shopify can deliver more accurately contextualized experiences (such as localizing transactional emails).

 

See https://changelog.shopify.com/posts/customer-country-auto-populated-on-signup


– Jimmy, Founder & Web Engineer at Rittencom, Shopify Partner since 2014
Ben1000
Trailblazer
262 3 68

Hi @JimmyRittenborg, thanks for updating us.

 

Where can we find this info?

JimmyRittenborg
Shopify Partner
9 1 5

You can follow the link in the bottom of my post 😊


– Jimmy, Founder & Web Engineer at Rittencom, Shopify Partner since 2014
Ben1000
Trailblazer
262 3 68

Hi @JimmyRittenborg, thanks I checked it before, and I didn't find info about it, Shopify help center referred me to the customer “location” column on “customers' page. But the tag shows the customers' address by their purchase address. All my customers are located in the Netherlands and part of them speaks English and not Dutch. So it's not helping.

 

I have the same problem as the one who wrote the post, "tag my customers based on what language they are visiting my store". Is your solution solves that problem?

pateketu
Shopify Partner
14 1 15

I am the developer of an auto-tagging app called TagRobot (https://apps.shopify.com/tag-robot), I have had a customer request for auto-tagging based on language, and I came across this thread, I have added a new feature in the app which will pick up the locale settings from GraphQl and apply a tag to the customer based on that, I am looking for someone to test it out as original customer who requested does not seem to respond, 

The thread is now 2 years old, but if anyone else coming across the thread and is interested in tagging based on language, drop me an an email on our app's support email address

Developer of
Multi-Location Inventory Info App (https://apps.shopify.com/location-inventory-info)
TagRobot Auto-Tagging app (https://apps.shopify.com/tag-robot)

eddy_vandeputt2
Visitor
1 0 0

Hi Sammy,

Thanks for suggestion.

With the Shopify’s Online Store 2.0 I have no more issues with the customer language as I can control this myself now.

Best regards, Eddy

Claudio4018
Excursionist
14 0 9

Hi Sammy

You can do this easily with Shopify Flow. Shopify Flow is available for non-Plus stores since a few weeks. The check you wanna do is on the customer locale.

 

Best

 

Claudio

Safety97
New Member
13 0 0

Hello guys,

I know this post is old but We're in the process of developing an app to tackle the very issue you've described for our clothing brand in France, as we've also started selling in multi-language European countries. Our solution involves Shopify webhooks for new accounts or orders, identifying the customer's locale. This info is then used to add a custom field in Mailchimp ( we could add more email integration like Klavyo in the future) for precise segmentation by country or language. Plus, we're integrating DeepL's AI for one-click campaign translations. We're seeking feedback to refine our approach. Would you be interested in providing feedback and testing our app?

Looking forward to your response!

Screenshot 2023-11-06 at 11.56.01.png