To send users to different, language-specific URLs from a single push notification, you can use dynamic content in the URL field. This is more efficient than creating separate campaigns for each language. The system automatically detects the user's device language and stores it in the default Language tag (e.g. 'en', 'es', 'fr'). You can use this tag to build a dynamic URL.
There are two primary methods, depending on your URL structure.
Option 1: URLs with a consistent pattern
If your URLs only differ by the language code (e.g. https://example.com/en/survey, https://example.com/es/survey), insert a placeholder directly into the URL field.
- Create a multi-language push preset and add content for each required language.
- Open the On-click Actions section of the Push preset and choose Link to web page.
- In the Web page URL field, structure your link using the
{{ Language }}placeholder:
https://example.com/{{ Language }}/survey
The system replaces {{ Language }} with the user's two-letter language code when the push is sent.
Option 2: Completely different URLs
If the URLs for each language are unique and do not follow a pattern, use Liquid template logic to set a condition per language.
- Create your multi-language push preset.
- Open the On-click Actions section and choose Link to web page.
- In the Web page URL field, insert a Liquid if/elsif/else block:
{% if Language == 'en' %}https://example.com/english_survey_url
{% elsif Language == 'es' %}https://example.com/spanish_version
{% elsif Language == 'fr' %}https://example.com/autre_page_fr
{% else %}https://example.com/default_survey_url
{% endif %}
-
{% if Language == 'en' %}— checks if the device language is English. -
{% elsif Language == '...' %}— checks for other languages; add as many as you need. -
{% else %}— fallback URL when no condition matches. Always include one. -
{% endif %}— closes the conditional block.
More info:
Comments
0 comments
Article is closed for comments.