Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

Javascript doesn't track - net::ERR_EMPTY_RESPONSE (no replies)

$
0
0
Hello,

I can't seem to get javascript tracking to work with my piwik installation. I have tested piwik using the tracking pixel and it works just fine. I have read the javascript the http://developer.piwik.org/api-reference/tracking-javascript article and it hasn't helped me much in debugging the problem.

When I open up the console.log() in chrome it gets the following error - net::ERR_EMPTY_RESPONSE. I am not sure how to fix this problem.

Also I am running nginx without ssl.

Also my piwik javascript code is as follows:

<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setCookieDomain", "*.languagelore.com"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stats.languagelore.com/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
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>
<noscript><p><img src="http://stats.languagelore.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->

Viewing all articles
Browse latest Browse all 4243

Trending Articles