I've got a question here from one of our team. We've used the Search component in /libs/foundation/search as a base for a search component and have used the search trends feature which writes stats via /bin/statistics/tracker/query to /var/statistics. However, in a multi-publisher environment, we'd get different results based on which publish server is hit by the user. Is there any configuration mechanism or combination of mechanisms that can easily synchronize this data? I'm wondering if we can write this data back to author (by a custom servlet or reverse replication) and then publish it back out?
Any insights or recommendations would be greatly appreciated.
Using Adobe Marketing Cloud Integrations such as SiteCatalyst would be right approach for such usecase. In case you are looking within cq then you might try with approach followed in "Page view Statistics"  of earlier cq version which is effectively deprecated now. The approach was develop a bundle and have configurable tracking url points to author instance. So that statictics gets written to author directly & then using workflow launcher call a activate action so that publish instances are in sync.