Print Geoloacation info for website Visitors

Hi,
i have a site built on Code Ignator,
i’d like to let the visitor see the following information when visiting the website…

Hello, your IP is "IP Address"
Your are From “City Name” - “Country Name

If there is a script that i can copy/paste into my template that would be great.

Kind Regards.

It’s a nice idea, and this could be easily done via a Plugin: Introduction: Develop - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

Maybe you could post your idea on our issue tracker: Issues · matomo-org/piwik · GitHub

Thanks for your reply, glad you find it usefull…
i am actually not too much into coding and github, so if you post to the issue tracker it’d be much better…

add to the idea above adding a class for each country so if i get a visitor from US i can use that class to show him the US flag or/and redirect him to us.mydomain.com

this w’ll make piwik the 1st choice for any developer for the unlimeted possibilities that this function is going to give.

Kind Regards.