How to track location manually

Google ADS provides pretty accurate location data that I’m retreiving with the custom tracking parameters: {loc_physical_ms}. But Matomo still uses the in comparison very inaccurate IP-location data. How can I manually update the visitor location according to the AD-location?

Thanks a lot for your help

I think the easiest way is to write a plugin that provides a simple locationprovider similar to
https://plugins.matomo.org/CloudflareLocationProvider

1 Like