You can show different content to users in different regions with Liquid logic and the default Country tag. Country is a server-side tag: Pushwoosh sets it from the device's IP address using a GeoIP database, so it reflects the last registered network location rather than GPS data.
Add a text or HTML block to your email and use an if / elsif statement. Country values are uppercase two-letter ISO 3166 codes, and Liquid string comparison is case-sensitive, so write the codes in uppercase:
{% if Country == 'GB' %}
Content for UK users
{% elsif Country == 'BR' %}
Content for Brazil users
{% else %}
General content for all other countries
{% endif %}
Check the actual values in your audience data before writing the conditions, so the codes in your template match the codes stored on your devices.
Targeting by city
City is also a default GeoIP tag, so you can use it the same way:
{% if City == 'London' %}...{% endif %}
Note that City is missing for some devices — for example when the IP address only resolves to country level, or when the user is behind a VPN or a corporate network. Add an {% else %} branch as a fallback. For any other region or segment attribute that Pushwoosh does not collect automatically, save the value as a custom tag first and then reference that tag in the editor.
Comments
0 comments
Please sign in to leave a comment.