Title: [Plugin: WP-Piwik] Two problems&#8230;
Last modified: August 20, 2016

---

# [Plugin: WP-Piwik] Two problems…

 *  Resolved [eldad@segaltec.co.il](https://wordpress.org/support/users/eldadsegalteccoil/)
 * (@eldadsegalteccoil)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-two-problems/)
 * _[ Moderator Note: Please post code or markup snippets between backticks or use
   the code button. ]_
 * Hello,
    On the mail App page inside wordpress “Thanks for using WP-Piwik! An 
   error occured: You can’t access this resource as it requires an view access for
   at least one website. [Support] Auto site configuration is enabled. Tracking 
   code insertion is disabled”
 * I have inserted the “Before the </body> tag on your index.html or index.php file
   include the following code:
 *     ```
       // <!-- Piwik -->
       <script type="text/javascript">
       var pkBaseURL = (("https:" == document.location.protocol) ? "http://www.MYSITE/counter/" : "http://MYSITE/counter/");
       document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
       </script><script type="text/javascript">
       try {
       var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
       piwikTracker.trackPageView();
       piwikTracker.enableLinkTracking();
       } catch( err ) {}
       </script><noscript><p><img src="http://www.MYSITE/counter/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript>
       <!-- End Piwik Tag -->
       ```
   
 * Under FOOTER.PHP That’s is the only file i have found /body
 * in the Piwik settings, problem with “check url and auth token”
    I have inserted
   in the REST url: [http://www.MYSITE/counter/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#module=Dashboard&action=embeddedIndex&idSite=1&period=day&date=yesterday&idDashboard=1](http://www.MYSITE/counter/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#module=Dashboard&action=embeddedIndex&idSite=1&period=day&date=yesterday&idDashboard=1)
 * And the Token i took from the API page and paste…
 * Please help me to fix this issue 🙂
    Thanks 🙂 Eldad
 * [http://wordpress.org/extend/plugins/wp-piwik/](http://wordpress.org/extend/plugins/wp-piwik/)

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

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-two-problems/#post-2897036)
 * The URL ist your Piwik’s dashboard URL. Try just ” [http://www.MYSITE/counter/&#8221](http://www.MYSITE/counter/&#8221);–
   it should work fine 🙂
 * If your template uses the wp_footer() function, you have not to add your tracking
   code manually, because WP-Piwik will offer you to add it automatically.
 *  Thread Starter [eldad@segaltec.co.il](https://wordpress.org/support/users/eldadsegalteccoil/)
 * (@eldadsegalteccoil)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-two-problems/#post-2897048)
 * Thank you for the fast reply
    I have changed the link but i still see a message“
   An error occured: Piwik did not answer. Please check your entered Piwik URL. [
   Support] but when i login to MYSITE/counter i see the website visits… on the “
   settings page” An error occured: Please check URL and auth token. You need at
   least view access to one site. [Support] I have checked the “Auto config” box
   as well…
 * I tried to check the Automatic wp_footer() function, but didn’t see and code 
   in the box… still saved and nothing has change in the message that error
    Thanks
   again
 *  Thread Starter [eldad@segaltec.co.il](https://wordpress.org/support/users/eldadsegalteccoil/)
 * (@eldadsegalteccoil)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-two-problems/#post-2897049)
 * OK!
 * I have changed the Auth token again (it has new characters)
 * Now its all fine 🙂
 * Thank you for the great support
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-two-problems/#post-2897072)
 * Allright, fine 🙂
 * At least please keep sure you use a manually added tracking code **OR** WP-Piwik’s“
   add tracking code” option. If you are not sure about this, please have a look
   a your site’s source code. The tracking code should only appear **once**.
 * Have fun & success with (WP-)Piwik!

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

The topic ‘[Plugin: WP-Piwik] Two problems…’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wp-piwik-two-problems/#post-2897072)
 * Status: resolved