[NEXUS-7731] Back port analytics multi-file changes to 2.11

Backport analytics changes for multi-file to 2.11

https://issues.sonatype.org/browse/NEXUS-7731
https://issues.sonatype.org/browse/NEXUS-7779