• Yes, another one I’m afraid.

    I’m new to Piwik, but had it all working a few days ago thanks to your plugin. (self hosted) The setup went smoothly with no hitches and I was able to see data in my Piwik dashboard.

    Then Piwik posted an update which I accepted because they said it was critical.

    Was busy for a couple of days but now tried checking my dashboard and there are no visits recorded there for the last few days! When I checked the WP-Piwik settings all my tracking code seemed to have disappeared!

    As far as I can remember, the update was the only change that happened.

    Anyway, I added the code again to WP-Piwik. And saved.

    But still I get the “not able to connect” message. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter StanLight

    (@stanlight)

    mysite.com in the below code replaces my real domain name.

    <code></code>WP-Piwik 1.0.9
    Mode: http
    
    Test 1/3: global.getPiwikVersion
    
    array(2) {
      ["result"]=>
      string(5) "error"
      ["message"]=>
      string(86) "You can't access this resource as it requires an view access for at least one website."
    }
    
    array(2) {
      [0]=>
      string(280) "HTTP/1.1 200 OK
    Date: Mon, 08 Aug 2016 20:38:44 GMT
    Server: Apache
    X-Powered-By: PHP/5.6.24
    Vary: Accept-Encoding,User-Agent
    Cache-Control: max-age=31536000
    Expires: Tue, 08 Aug 2017 20:38:44 GMT
    Transfer-Encoding: chunked
    Content-Type: application/json; charset=utf-8
    
    "
      [1]=>
      string(162) "https://www.mysite.com/piwik-analytics/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&token_auth=..."
    }
    
    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
    
    array(0) {
    }
    
    array(2) {
      [0]=>
      string(255) "HTTP/1.1 200 OK
    Date: Mon, 08 Aug 2016 20:38:45 GMT
    Server: Apache
    X-Powered-By: PHP/5.6.24
    Cache-Control: max-age=31536000
    Expires: Tue, 08 Aug 2017 20:38:45 GMT
    Vary: User-Agent
    Content-Length: 4
    Content-Type: application/json; charset=utf-8
    
    "
      [1]=>
      string(185) "https://www.mysite.com/piwik-analytics/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3Dn%2Fa&token_auth=..."
    }
    
    Test 3/3: SitesManager.getSitesIdFromSiteUrl
    
    array(0) {
    }
    
    array(2) {
      [0]=>
      string(255) "HTTP/1.1 200 OK
    Date: Mon, 08 Aug 2016 20:38:47 GMT
    Server: Apache
    X-Powered-By: PHP/5.6.24
    Cache-Control: max-age=31536000
    Expires: Tue, 08 Aug 2017 20:38:47 GMT
    Vary: User-Agent
    Content-Length: 4
    Content-Type: application/json; charset=utf-8
    
    "
      [1]=>
      string(219) "https://www.mysite.com/piwik-analytics/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DSitesManager.getSitesIdFromSiteUrl%26idSite%3Dn%2Fa%26url%3Dhttp%3A%2F%2Fwww.mysite.comm&token_auth=..."
    }
    
    array(2) {
      ["global_settings"]=>
      array(58) {
        ["revision"]=>
        string(10) "2016052901"
        ["last_settings_update"]=>
        string(10) "1470687867"
        ["piwik_mode"]=>
        string(4) "http"
        ["piwik_url"]=>
        string(44) "https://www.mysite.com/piwik-analytics/"
        ["piwik_path"]=>
        string(44) "https://www.mysite.com/piwik-analytics/"
        ["piwik_user"]=>
        string(0) ""
        ["piwik_token"]=>
        string(3) "set"
        ["auto_site_config"]=>
        string(1) "1"
        ["default_date"]=>
        string(12) "current_week"
        ["stats_seo"]=>
        string(1) "0"
        ["dashboard_widget"]=>
        string(5) "today"
        ["dashboard_chart"]=>
        string(1) "1"
        ["dashboard_seo"]=>
        string(1) "0"
        ["toolbar"]=>
        string(1) "0"
        ["capability_read_stats"]=>
        array(5) {
          ["administrator"]=>
          string(1) "1"
          ["editor"]=>
          string(1) "0"
          ["author"]=>
          string(1) "0"
          ["contributor"]=>
          string(1) "0"
          ["subscriber"]=>
          string(1) "0"
        }
        ["perpost_stats"]=>
        string(1) "1"
        ["plugin_display_name"]=>
        string(8) "WP-Piwik"
        ["piwik_shortcut"]=>
        string(1) "1"
        ["shortcodes"]=>
        string(1) "0"
        ["track_mode"]=>
        string(8) "manually"
        ["track_codeposition"]=>
        string(6) "header"
        ["track_noscript"]=>
        string(1) "0"
        ["track_nojavascript"]=>
        string(1) "1"
        ["proxy_url"]=>
        string(0) ""
        ["track_content"]=>
        string(3) "all"
        ["track_search"]=>
        string(1) "1"
        ["track_404"]=>
        string(1) "1"
        ["add_post_annotations"]=>
        string(1) "0"
        ["add_customvars_box"]=>
        string(1) "0"
        ["add_download_extensions"]=>
        string(0) ""
        ["set_download_extensions"]=>
        string(0) ""
        ["disable_cookies"]=>
        string(1) "0"
        ["limit_cookies"]=>
        string(1) "0"
        ["limit_cookies_visitor"]=>
        string(8) "34186669"
        ["limit_cookies_session"]=>
        string(4) "1800"
        ["limit_cookies_referral"]=>
        string(8) "15778463"
        ["track_admin"]=>
        string(1) "0"
        ["capability_stealth"]=>
        array(0) {
        }
        ["track_across"]=>
        string(1) "0"
        ["track_across_alias"]=>
        string(1) "0"
        ["track_feed"]=>
        string(1) "0"
        ["track_feed_addcampaign"]=>
        string(1) "0"
        ["track_feed_campaign"]=>
        string(4) "feed"
        ["track_heartbeat"]=>
        string(1) "0"
        ["track_user_id"]=>
        string(8) "disabled"
        ["cache"]=>
        string(1) "1"
        ["http_connection"]=>
        string(4) "curl"
        ["http_method"]=>
        string(4) "post"
        ["disable_timelimit"]=>
        string(1) "0"
        ["connection_timeout"]=>
        string(1) "5"
        ["disable_ssl_verify"]=>
        string(1) "0"
        ["piwik_useragent"]=>
        string(3) "php"
        ["piwik_useragent_string"]=>
        string(8) "WP-Piwik"
        ["track_datacfasync"]=>
        string(1) "0"
        ["track_cdnurl"]=>
        string(0) ""
        ["track_cdnurlssl"]=>
        string(0) ""
        ["force_protocol"]=>
        string(8) "disabled"
        ["update_notice"]=>
        string(7) "enabled"
      }
      ["settings"]=>
      array(6) {
        ["name"]=>
        string(0) ""
        ["site_id"]=>
        string(3) "n/a"
        ["noscript_code"]=>
        string(0) ""
        ["tracking_code"]=>
        string(728) "<!-- Piwik -->
    <script type="text/javascript">
      var _paq = _paq || [];
      _paq.push(["setDomains", ["*.mysite.com"]]);
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="//www.mysite.com/piwik-analytics/";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', '1']);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <noscript><p><img src="//www.mysite.com/piwik-analytics/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
    <!-- End Piwik Code -->
    "
        ["last_tracking_code_update"]=>
        string(1) "0"
        ["dashboard_revision"]=>
        string(1) "0"
      }
    }
    <code></code>
    Plugin Author braekling

    (@braekling)

    Please have a look at the delivered message:

    You can’t access this resource as it requires an view access for at least one website.

    Obviously, your auth token does not grant view access. Maybe after the Piwik update your auth token changed? Otherwise, please check the related configuration – is at least view access granted?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP-Piwik 1.0.9 was not able to connect to Piwik using your configuration.’ is closed to new replies.