Geolocation
This set of Smart Tags returns information about the visitor’s physical location. For this Smart Tags work, the Geolocation features must be enabled.
{geo.country}
Returns the visitor's country name. Eg: Greece.
The value of this Smart Tag supports translations via the NR_COUNTRY_[COUNTRY_CODE] language string.
{geo.countrycode}
Returns the visitor's country code. Eg: GR
{geo.city}
Returns the visitor's city name. Eg: Athens
{geo.region}
Returns the visitor's region.
{geo.location}
Return the visitor's geolocation (Country, City, Region).
Date Time
This set of Smart Tags returns information about the current date time respecting the timezone selected in the site’s global configuration.
{date}
Returns the current date time in format Y-m-d H:i:s. Eg: 2023-09-12 11:22:52.
To output the date with a custom format, pass the --format=FORMAT_OPTIONS option. List of available format characters.
- To output a date as 09/12/2023 use, {date --format=m/d/Y}
- To output a date as Tue, 12 Sep 2023, use {date --format=D, d M Y}
{day}
Returns the numeric representation of a day of the month without leading zeros. Eg: 22.
Use the {date} Smart Tag to output the current date of the week in another format. Examples:
- Day of the month, two digits with leading zeros such as 01 or 31. {date --format=d}
- A textual representation of a day, three letters, such as Mon or Sun. {date --format=D}
- A full textual representation of the day of the week, such as Sunday or Monday. {date --format=l} (lowercase 'L')
- ISO 8601 numeric representation of the day of the week, such as 1 (for Monday) through 7 (for Sunday). {date --format=N}
- Numeric representation of the day of the week, 0 (for Sunday) through 6 (for Saturday). {date --format=w}
- The day of the year (starting from 0) 0 through 365. {date --format=z}
{month}
Returns the numeric representation of the month without leading zeros. Eg: 5.
Use the {date} Smart Tag to output the current month in another format. Examples:
- A full textual representation of a month, such as January or March: {date --format=F}
- Numeric representation of a month, with leading zeros such as 01 or 12. {date --format=m}
- A short textual representation of a month, three letters, such as Jan or Dec. {date --format=M}
{year}
Returns a 4-digit numeric representation of the year. Eg: 2023. To output a 2-digit year, use {date --format=y}
{time}
Returns a 24-hour format of an hour with leading zeros. Eg: 20:30.