Async java tracking code not working with 1.8.x

I have tried Async Java tracking code which is following, I can see Live traffic and all but its not properly updating visitor browser, I tried multiple browser but its only showing me Chrome. Am i doing something wrong with code?


<!-- Piwik --> <script type="text/javascript">
var _paq = _paq || [];
(function(){ var u=(("https:" == document.location.protocol) ? "https://www.example.com/" : "http://www.example.com/");
_paq.push(['setSiteId', 4]);
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js';
s.parentNode.insertBefore(g,s); })();
 </script>
<!-- End Piwik Code -->

Do you see any JS error when it does not work?

Now its working, May be it was my fault. but anyway thanks!