Timo,
I moved the "setAPIUrl" call further up and it worked. It might be good to mention this in the help documents that order matters (especially for us non javascript folks).
Providing sample modified code would also be useful as I was looking for copy and paste examples myself.
I moved the "setAPIUrl" call further up and it worked. It might be good to mention this in the help documents that order matters (especially for us non javascript folks).
Providing sample modified code would also be useful as I was looking for copy and paste examples myself.
<script> var _paq = _paq || []; _paq.push(["setAPIUrl", apiUrl]); _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://" + piwikurl +/; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "#"]); 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>