All Collections
Content Personalization
Showing dynamic content in popups/message bar/Javascript rules
Showing dynamic content in popups/message bar/Javascript rules

Using built-in tokens to display dynamic content

Nir avatar
Written by Nir
Updated over a week ago

Barilliance supports 'tokens' (sometimes called merge fields) which can be embedded in message bars/ Popups or Javascript rules. The tokens are automatically replaced with dynamic information.

The supported tokens are: 

%num_visitors% - number of visitors currently on the website
%geo_country% - country name in english e.g. United Kingdom
%geo_flag_32% - country flag (32x32pixels)
%geo_flag_48% - country flag (48x48pixels)
%geo_usstate% - US state name e.g. New York - empty for non US visitors
%cart_total% - total amount in the user shopping cart.
%weather% - English string representing the weather. for example 'Cloudy'
%tempC% - Temperature in Celcius
%tempF% - Temperature in Fahrenheit 


When the system does not have the information to show in the token, the token will be replaced by an empty string.


Did this answer your question?