Title: tracking code {$options} not defined
Last modified: August 22, 2016

---

# tracking code {$options} not defined

 *  [felixhelix](https://wordpress.org/support/users/felixhelix/)
 * (@felixhelix)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-options-not-defined/)
 * 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://wordpress.org/plugins/wp-piwik/](https://wordpress.org/plugins/wp-piwik/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-options-not-defined/#post-5205494)
 * 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](https://wordpress.org/support/users/felixhelix/)
 * (@felixhelix)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-options-not-defined/#post-5205670)
 * 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](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-options-not-defined/#post-5205673)
 * 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](https://wordpress.org/support/users/felixhelix/)
 * (@felixhelix)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-options-not-defined/#post-5205675)
 * 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](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-options-not-defined/#post-5205678)
 * In this case please ask the Piwik community: [http://forum.piwik.org/](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 🙁

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘tracking code {$options} not defined’ is closed to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/tracking-code-options-not-defined/#post-5205678)
 * Status: not resolved