In this article: About custom content by browser language | Usage examples | How to set up a browser language condition
What is content by browser language?
The browser language condition lets you display add or replace content on your website according to the users’ defined languages on his browser.
How can your site benefit from the browser language condition? Examples:
- Improve engagement by displaying a short message in your visitor’s language.
- Translate your website’s call to actions – a proven way to improve conversion rates.
- Display testimonials or product recommendations in the visitor’s language.
- Redirect users to a page in their own language (or add a suggestion to visit a page in their language).
What is a browser language?
Most desktop browsers have settings that allow you to set the language preference settings. These tell the server what language you prefer for pages and resources that it sends you (separately from the language of the browser user interface).
For browsers on mobile devices, the language preferences are likely to be determined by the operating system settings, or in some cases by the language of the system when you installed the browser.
Browsers that allow you to change your language preferences will generally allow you to specify a list of languages so that if your first choice is not available you can say what alternative languages to try, and in what order.
How to configure the browser language in common browsers:
Choose to display dynamic content only if the language is set as a primary
As written above, some browsers allow users to specify a list of languages so that if their first choice is not available they can say what alternative languages to try, and in what order. If>So allows you to choose whether to display dynamic versions if a language is set as primary or if a language exists in the user’s languages list.
The option is useful since in many cases the browser language condition is used to grab visitors attention with a message in their mother tongue language.
Which content can be customized using the browser language condition?
Same as on all If>So’s dynamic triggers, any content of the website can be customized. That includes titles, texts, images, call to actions, and buttons.
How to set up a Dynamic Links using If>So
- On your WordPress dashboard, go to “If>So → Add New Trigger.
- Click on “Select a condition” and select “User Behavior → Browser language “.
- Select a language
- In the content field, set the content to be displayed if the language exists on the visitor’s configured language list
- In the default content field, set content to be displayed if the language does not exist on the visitor’s configured language list.
- Press “Publish” and paste the shortcode generated by If>So in your website.