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) ? "" : "");
_paq.push(['setSiteId', 4]);
_paq.push(['setTrackerUrl', u+'piwik.php']);
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); })();
<!-- End Piwik Code -->

(Matthieu Aubry) #2

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


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