Пришлось самому делать, вот, что получилось :)
<!-- generation userID and set cookies -->
<?php if (isset($_COOKIE["userID"])) {
$userID = $_COOKIE["userID"];
} else {
$userID = uniqid(); //generate userID
setcookie("userID", $userID, time() + 0, "/", "", false, true);
} ?>
<!-- end generation userID and set cookies -->
<!-- /Top.Mail.Ru counter -->
<script type="text/javascript">
var userID = "<?php echo $userID ?>"; // throw php var to js var
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({id: "3304942", type: "pageView", start: (new Date()).getTime(), pid: userID}); // attached js var userID
(function (d, w, id) {
if (d.getElementById(id)) return;
var ts = d.createElement("script");
ts.type = "text/javascript";
ts.async = true;
ts.id = id;
ts.src = "https://top-fwz1.mail.ru/js/code.js";
var f = function () {
var s = d.getElementsByTagName("script")[0];
s.parentNode.insertBefore(ts, s);
};
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else {
f();
}
})(document, window, "tmr-code");
</script>
<!-- /Top.Mail.Ru counter -->