How to get visitor location details in angular / Javascript

Hi there,
I would like to know how to get the current visitor location details (country, region, province) from the Matomo in my angular code like how we are getting VisitorId(). or is there any way I can send visitor location info to the Matomo event?

Hi @piyush
By default, the “location” detail will be gathered from the browser language.
But you can add geolocation automatically (no need to code in your Angular App) from the IP:

There is also a plugin in case of intranet:

Last possibility: add location parameters to the HTTP tracking request: