I downloaded 5.1.4 and am still experiencing the problem.
I found a simpler fix…
$ga_url = $_SERVER['PHP_SELF'];
to
$ga_url = $_SERVER['REQUEST_URI'];
The problem is that $_SERVER[‘PHP_SELF’] returns the current php script relative to the server’s document root. This does not contain the differentiating prepended path in a multi-site installation that uses paths.
For example…
https://blog.net/myblog/wp-admin/something
$_SERVER[‘PHP_SELF’] would return “/wp-admin/something”
$_SERVER[‘REQUEST_URI’] would return “/myblog/wp-admin/something”