The plugin does not create the tracking code, it’s delivered by Piwik.
If you copied your tracking code manually to your footer, you should check the code you copied. Where did you get this code?
Why don’t you ask WP-Piwik to add the tracking code automatically?
Yes, that’s what I did – sorry if what I wrote was misleading: If I use the wp-piwik plugin to insert the code, it writes:
var _paq = _paq || [];
{$options}
_paq.push([‘trackPageView’]);
_paq.push([‘enableLinkTracking’]);
(function() {
var u=((“https:” == document.location.protocol) ? “https” : “http”) + “://ea.friese-software.de/”;
_paq.push([‘setTrackerUrl’, u+’piwik.php’]);
_paq.push([‘setSiteId’, 3]);
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);
})();
But {$options} is not defined – so I get an error from the browser?
your’s
felix
Hm, WP-Piwik does not add such a “{$options}” string. Can you check the tracking code preview in Piwik itself? Does the “{$options}” appear there, too?
Yes, it does!
In the tracking code preview:
<!– Piwik –>
<script type=”text/javascript”>
var _paq = _paq || [];
{$options}
_paq.push([‘trackPageView’]);
_paq.push([‘enableLinkTracking’]);
(function() {
…
In this case please ask the Piwik community: http://forum.piwik.org/
WP-Piwik just uses the tracking code delivered by Piwik… I’m sorry, but I can’t tell you why Piwik is adding this string to your code 🙁