• Resolved barthat

    (@barthat)


    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://ww.wp.xz.cn/plugins/wp-piwik/

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

    (@braekling)

    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

    (@barthat)

    Here it is…

    ID	Title	URL	                Site ID (Piwik)
    -	Site	http://www.site.com	1

    Thanks!

    Plugin Author braekling

    (@braekling)

    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

    (@barthat)

    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

    (@braekling)

    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

    (@braekling)

    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.