Title: &#039;idSite=&#039; is missing
Last modified: August 24, 2016

---

# 'idSite=' is missing

 *  Resolved [barthat](https://wordpress.org/support/users/barthat/)
 * (@barthat)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/idsite-is-missing/)
 * I have a problem since I updated to 10.0.7 from latest 9.x release
 * `WP-Piwik 0.10.0.7 is successfully connected to Piwik 2.13.1. You are running
   WordPress 4.2.2.`
 * This appears in the tracking code window (I am using js/index.php).
 * `<!-- a:2:{s:6:"result";s:5:"error";s:7:"message";s:52:"The parameter 'idSite
   =' is missing from the request.";} -->`
 * Here is the result of the Support Test Script
 *     ```
       WP-Piwik 0.10.0.7
       Mode: http
   
       Test 1/3: global.getPiwikVersion
   
       string(6) "2.13.1"
   
       array(2) {
         [0]=>
         string(406) "HTTP/1.1 200 OK
       Date: Sat, 16 May 2015 07:23:43 GMT
       Server: Apache
       Cache-Control: private, no-store, no-cache, must-revalidate, proxy-revalidate, no-transform, max-age=0
       Expires: Sun, 17 May 2015 07:23:43 GMT
       X-UA-Compatible: IE=edge
       Vary: User-Agent,Accept-Encoding
       X-Frame-Options: SAMEORIGIN
       X-XSS-Protection: 1;mode=block
       Transfer-Encoding: chunked
       Content-Type: text/plain; charset=utf-8
   
       "
         [1]=>
         string(150) "http://www.analytics.site.com/?module=API&method=API.getBulkRequest&format=php&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3D1&token_auth=..."
       }
   
       Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
   
       array(1) {
         [0]=>
         array(16) {
           ["idsite"]=>
           string(1) "1"
           ["name"]=>
           string(13) "Site"
           ["main_url"]=>
           string(22) "http://site.com"
           ["ts_created"]=>
           string(19) "2013-07-27 01:31:00"
           ["ecommerce"]=>
           string(1) "0"
           ["sitesearch"]=>
           string(1) "1"
           ["sitesearch_keyword_parameters"]=>
           string(0) ""
           ["sitesearch_category_parameters"]=>
           string(0) ""
           ["timezone"]=>
           string(16) "Europe/xyz"
           ["currency"]=>
           string(3) "USD"
           ["excluded_ips"]=>
           string(11) "xx.xxx.xxx.*"
           ["excluded_parameters"]=>
           string(0) ""
           ["excluded_user_agents"]=>
           string(0) ""
           ["group"]=>
           string(0) ""
           ["type"]=>
           string(7) "website"
           ["keep_url_fragment"]=>
           string(1) "0"
         }
       }
   
       array(2) {
         [0]=>
         string(406) "HTTP/1.1 200 OK
       Date: Sat, 16 May 2015 07:23:43 GMT
       Server: Apache
       Cache-Control: private, no-store, no-cache, must-revalidate, proxy-revalidate, no-transform, max-age=0
       Expires: Sun, 17 May 2015 07:23:43 GMT
       X-UA-Compatible: IE=edge
       Vary: User-Agent,Accept-Encoding
       X-Frame-Options: SAMEORIGIN
       X-XSS-Protection: 1;mode=block
       Transfer-Encoding: chunked
       Content-Type: text/plain; charset=utf-8
   
       "
         [1]=>
         string(173) "http://www.analytics.site.com/?module=API&method=API.getBulkRequest&format=php&urls[0]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3D1&token_auth=..."
       }
   
       Test 3/3: SitesManager.getSitesIdFromSiteUrl
   
       array(1) {
         [0]=>
         array(1) {
           ["idsite"]=>
           string(1) "1"
         }
       }
   
       array(2) {
         [0]=>
         string(406) "HTTP/1.1 200 OK
       Date: Sat, 16 May 2015 07:23:44 GMT
       Server: Apache
       Cache-Control: private, no-store, no-cache, must-revalidate, proxy-revalidate, no-transform, max-age=0
       Expires: Sun, 17 May 2015 07:23:44 GMT
       X-UA-Compatible: IE=edge
       Vary: User-Agent,Accept-Encoding
       X-Frame-Options: SAMEORIGIN
       X-XSS-Protection: 1;mode=block
       Transfer-Encoding: chunked
       Content-Type: text/plain; charset=utf-8
   
       "
         [1]=>
         string(206) "http://www.analytics.site.com/?module=API&method=API.getBulkRequest&format=php&urls[0]=method%3DSitesManager.getSitesIdFromSiteUrl%26idSite%3D1%26url%3Dhttp%3A%2F%2Fwww.site.com&token_auth=..."
       }
       ```
   
 * Any ideas what can be the problem?
 * [https://wordpress.org/plugins/wp-piwik/](https://wordpress.org/plugins/wp-piwik/)

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

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/idsite-is-missing/#post-6136418)
 * The test output looks quite good… Can you open the settings -> support tab and
   click the site browser link, please? There the currently stored site ID is shown.
   Thank you!
 *  Thread Starter [barthat](https://wordpress.org/support/users/barthat/)
 * (@barthat)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/idsite-is-missing/#post-6136455)
 * Here it is…
 *     ```
       ID	Title	URL	                Site ID (Piwik)
       -	Site	http://www.site.com	1
       ```
   
 * Thanks!
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/idsite-is-missing/#post-6136461)
 * Hm, looks as expected. Can you try to disable WP-Piwik’s caching (expert settings)?
   The tracking code should not be cached, but so we can be sure.
 *  Thread Starter [barthat](https://wordpress.org/support/users/barthat/)
 * (@barthat)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/idsite-is-missing/#post-6136468)
 * When I disable caching in WP-Piwik the tracking code window shows the tracking
   code correctly. However the ID is still “-“. Apart from that as far as I can 
   see WP-Piwik is working correctly now.
 * By the way I am also using Autoptimize and WP Super Cache (with Preload).
 * Thanks.
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/idsite-is-missing/#post-6136511)
 * The ID value “-” is correct – you are using a single site setup, so WordPress
   does not give your blog a seperate blog ID. Important for WP-Piwik to work is
   the Piwik site ID, which is available in your case.
 * The initial issue is a caching problem I’m working on.
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/idsite-is-missing/#post-6136517)
 * Initial issue fixed in 0.10.0.8.
 * 1. Before the tracking code is fetched, WP-Piwik will make sure the Piwik site
   ID is known and try to get it if not.
    2. If the tracking code contains an error
   message, WP-Piwik will try to fetch it again with every request.
 * (I also renamed “ID” to “Blog ID” so this won’t cause confusion.)
 * Release this evening.

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

The topic ‘'idSite=' is missing’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/idsite-is-missing/#post-6136517)
 * Status: resolved