• Resolved lyle

    (@lyle)


    got signed up for the trial, and from what I can tell this looks like its exactly what Im looking for.
    However.. I am having issues with getting API to work. (connection)

    Does this test script reveal what I could try next?

    Thx alot for the help

    k.

    WP-Piwik 1.0.19
    Mode: cloud
    
    Test 1/3: global.getPiwikVersion
    
    bool(false)
    
    array(2) {
      [0]=>
      string(269) "HTTP/1.1 200 OK
    Date: Sun, 02 Dec 2018 21:04:44 GMT
    Server: Apache/2.2
    Cache-Control: max-age=691200
    Expires: Mon, 10 Dec 2018 21:04:44 GMT
    Vary: Accept-Encoding
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=utf-8
    Via: 1.1 alproxy, 1.1 alproxy
    
    "
      [1]=>
      string(154) "https://xxxxxx.innocraft.cloud/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&token_auth=..."
    }
    
    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
    
    bool(false)
    
    array(2) {
      [0]=>
      string(269) "HTTP/1.1 200 OK
    Date: Sun, 02 Dec 2018 21:04:45 GMT
    Server: Apache/2.2
    Cache-Control: max-age=691200
    Expires: Mon, 10 Dec 2018 21:04:45 GMT
    Vary: Accept-Encoding
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=utf-8
    Via: 1.1 alproxy, 1.1 alproxy
    
    "
      [1]=>
      string(231) "https://xxxxxxx.innocraft.cloud/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&urls[1]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3Dn%2Fa&token_auth=..."
    }
    
    Test 3/3: SitesManager.getSitesIdFromSiteUrl
    
    bool(false)
    
    array(2) {
      [0]=>
      string(269) "HTTP/1.1 200 OK
    Date: Sun, 02 Dec 2018 21:04:46 GMT
    Server: Apache/2.2
    Cache-Control: max-age=691200
    Expires: Mon, 10 Dec 2018 21:04:46 GMT
    Vary: Accept-Encoding
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=utf-8
    Via: 1.1 alproxy, 1.1 alproxy
    
    "
      [1]=>
      string(339) "https://xxxxxxx.innocraft.cloud/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&urls[1]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3Dn%2Fa&urls[2]=method%3DSitesManager.getSitesIdFromSiteUrl%26idSite%3Dn%2Fa%26url%3Dhttps%3A%2F%2Fferfrigsakes.com&token_auth=..."
    }
    
    array(2) {
      ["global_settings"]=>
      array(65) {
        ["revision"]=>
        string(10) "2017101501"
        ["last_settings_update"]=>
        string(10) "1543781365"
        ["piwik_mode"]=>
        string(5) "cloud"
        ["piwik_url"]=>
        string(1) "/"
        ["piwik_path"]=>
        string(0) ""
        ["piwik_user"]=>
        string(11) "xxxxxxx"
        ["piwik_token"]=>
        string(3) "set"
        ["auto_site_config"]=>
        string(1) "1"
        ["default_date"]=>
        string(9) "yesterday"
        ["stats_seo"]=>
        string(1) "0"
        ["stats_ecommerce"]=>
        string(1) "0"
        ["dashboard_widget"]=>
        string(8) "disabled"
        ["dashboard_ecommerce"]=>
        string(1) "0"
        ["dashboard_chart"]=>
        string(1) "0"
        ["dashboard_seo"]=>
        string(1) "0"
        ["toolbar"]=>
        string(1) "0"
        ["capability_read_stats"]=>
        array(7) {
          ["administrator"]=>
          string(1) "1"
          ["editor"]=>
          string(1) "0"
          ["author"]=>
          string(1) "0"
          ["contributor"]=>
          string(1) "0"
          ["subscriber"]=>
          string(1) "0"
          ["wpseo_manager"]=>
          string(1) "0"
          ["wpseo_editor"]=>
          string(1) "0"
        }
        ["perpost_stats"]=>
        string(1) "0"
        ["plugin_display_name"]=>
        string(8) "WP-Piwik"
        ["piwik_shortcut"]=>
        string(1) "0"
        ["shortcodes"]=>
        string(1) "0"
        ["track_mode"]=>
        string(7) "default"
        ["track_codeposition"]=>
        string(6) "footer"
        ["track_noscript"]=>
        string(1) "0"
        ["track_nojavascript"]=>
        string(1) "0"
        ["proxy_url"]=>
        string(0) ""
        ["track_content"]=>
        string(8) "disabled"
        ["track_search"]=>
        string(1) "0"
        ["track_404"]=>
        string(1) "0"
        ["add_post_annotations"]=>
        array(0) {
        }
        ["add_customvars_box"]=>
        string(1) "0"
        ["add_download_extensions"]=>
        string(0) ""
        ["set_download_extensions"]=>
        string(0) ""
        ["set_link_classes"]=>
        string(0) ""
        ["set_download_classes"]=>
        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_crossdomain_linking"]=>
        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"
        ["disable_ssl_verify_host"]=>
        string(1) "0"
        ["piwik_useragent"]=>
        string(3) "php"
        ["piwik_useragent_string"]=>
        string(8) "WP-Piwik"
        ["dnsprefetch"]=>
        string(1) "0"
        ["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(0) ""
        ["last_tracking_code_update"]=>
        string(10) "1543781365"
        ["dashboard_revision"]=>
        string(1) "0"
      }
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author braekling

    (@braekling)

    I imagine with “getting the API to work” you are talking about the plugin?

    Did you register just a few days ago? Then you got an URL like xxxx.matomo.cloud, didn’t you? The current version is using xxxx.innocraft.cloud (see the test script), so you should configure the plugin as “self-hosted” and enter the xxxx.matomo.cloud URL there.

    Otherwise, if you received an URL like xxxx.innocraft.cloud, you should check your auth token and the permissions granted to this token/ user.

    I just signed up for a cloud trial and got a xxxx.matomo.cloud url. As you described, I chose “self hosted” instead of cloud and entered in my matomo.cloud url. I was able to properly connect with this method.

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