I have use a free widget to show online user count. but i didnt work .
I made a customized version that widget to use in office 365 SharePoint.
Dowload the library :- https://onedrive.live.com/redir?resid=1D7F31756D95FB7A!566&authkey=!AHBgHIO9oC0iftw&ithint=file%2cjs
Add the following script to your side (Or add to content editor)
<script id="_wauz68">var _wau = _wau || []; _wau.push(["classic", "9aa2far871tw", "z68"]);
(function() {
var s=document.createElement("script");
s.async=true;
s.src="/sites/intranet/Style Library/EFL/js/classic.js";
document.getElementsByTagName("head")[0].appendChild(s);
$("#asas").append(s);
})();
</script>