Matomo Application JS errors

Just discovered the JS errors are caused by the installation on Main wiki and accessed sub-wiki.

Disabling configuration option “Multiwiki tracking” on both instances cleared the JS errors.

Enabling on either side caused JS errors on the other wiki.