Here's what my wordpress piwik tracking code looks like
Pastebin (for some reason posting the code here make it disappear but still exist in edit. Is it being run? Seems like a bug..
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//piwik-site.tld/";
_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.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
piwik-site.tld is where your main site is where you'd lookup statistics.
To connect it looks like it needs to know the location and its auth token.