Adding to getReportMetaData (or dataTable)

I am trying to configure the geoip plugin so I can add the “City” as a checkbox option under Email Reports. The API is more complex then anything I have ever worked with, but I do have quite a bit of experience in php.

I can see that all the fields are pulled from getReportMetaData, but I am not sure how to add another option to it. (maybe addColumn?) … anyone that can explain this to me or give an example I would really appreciate it. Thanks!

maybe it isnt possible to add to the pdf report through the api?

Not yet, but when geoip is in core it will work as you expect: Include GeoIP in core after improvements · Issue #1823 · matomo-org/matomo · GitHub