You can show specific content to users in certain regions by using Liquid logic and the default Country tag. The Country tag uses the most recent location data from the user's device.
To set this up, add a text or HTML block to your email and include an if/else statement. The system checks the user's location and displays the version of the message that matches their country code.
Use this syntax as a template:
{% if Country == 'gb' %}
Content for UK users
{% elsif Country == 'br' %}
Content for Brazil users
{% else %}
General content for all other countries
{% endif %}
Check the country values in your user database before setting these conditions to ensure they match the codes you use in the code. If you want to target users by city or specific region, you must save that data as a custom tag before it can be used in the email editor.
Comments
0 comments
Please sign in to leave a comment.