Getting visitor country and county by IP in HubL


#1

Hey,

currently I’am using javascript for doing the job, but it would be much better and nicer to solve this problem on the back-end side. Do we have any variable/function to complete this?

For example:

{% if visitor.country == 'US' %}<p>Show some US-related thing here</p>{% endif %}

Thanks,

Attila