• Hi,
    I installed the pwiki plugin and everything is fine – test O.K., tracking code is inserted – but firebug tells met that the variable {$options} is not defined: So the code isn’t executed.
    I already placed the tracking code in the footer.
    Any idea how to check further? Or where – in the plugin source code – the tracking code is created?
    your’s
    felix

    https://www.ads-software.com/plugins/wp-piwik/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author braekling

    (@braekling)

    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?

    Thread Starter felixhelix

    (@felixhelix)

    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

    Plugin Author braekling

    (@braekling)

    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?

    Thread Starter felixhelix

    (@felixhelix)

    Yes, it does!
    In the tracking code preview:
    <!– Piwik –>
    <script type=”text/javascript”>
    var _paq = _paq || [];
    {$options}
    _paq.push([‘trackPageView’]);
    _paq.push([‘enableLinkTracking’]);
    (function() {

    Plugin Author braekling

    (@braekling)

    In this case please ask the Piwik community: https://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 ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘tracking code {$options} not defined’ is closed to new replies.