• Resolved morsezeichen

    (@morsezeichen)


    Hey André and everyone else here,

    first, thank you for developing this plugin, which is really useful. Unfortunately I can’t get it to work, as Matomo seems to not receive data, even though the plugin says that it’s connected ‘WP-Matomo 1.0.22 is successfully connected to Matomo 3.11.0. You are running WordPress 5.2.3. ‘.

    Here are some details:

    – I run it on a subdomain of the domain I want to track. I have tried both self-hosted matomo modes in the plugin, each time it says it works.

    – Auth-token works and recognizes my site.

    – Tracking enabeling works and the code is displayed in the source code.

    – I have emptied the cache and disabled the cache plugin I use ‘WP Fastest Cache’.

    – In Matomo, the system check says everything works.

    Not sure if I made a mistake or forgot something. I hope we will be able to solve that little problem together ?? Thanks!

    Here’s the testscript result (I have replaced my domain name with ‘domain’):

    WP-Matomo 1.0.22
    Mode: http
    
    Test 1/3: global.getPiwikVersion
    
    string(6) "3.11.0"
    
    array(2) {
      [0]=>
      string(215) "HTTP/1.1 200 OK
    Date: Wed, 02 Oct 2019 18:28:39 GMT
    Server: Apache/2.4.29 (Ubuntu)
    X-Matomo-Request-Id: d1689
    Cache-Control: must-revalidate
    Content-Length: 10
    Content-Type: application/json; charset=utf-8
    
    "
      [1]=>
      string(137) "https://stats.domain.at/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3D1&token_auth=..."
    }
    
    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
    
    array(1) {
      [0]=>
      array(20) {
        ["idsite"]=>
        string(1) "1"
        ["name"]=>
        string(13) "Domain Name"
        ["main_url"]=>
        string(16) "https://domain.at"
        ["ts_created"]=>
        string(19) "2019-10-02 14:06:10"
        ["ecommerce"]=>
        string(1) "1"
        ["sitesearch"]=>
        string(1) "1"
        ["sitesearch_keyword_parameters"]=>
        string(0) ""
        ["sitesearch_category_parameters"]=>
        string(0) ""
        ["timezone"]=>
        string(13) "Europe/Vienna"
        ["currency"]=>
        string(3) "USD"
        ["exclude_unknown_urls"]=>
        string(1) "0"
        ["excluded_ips"]=>
        string(0) ""
        ["excluded_parameters"]=>
        string(0) ""
        ["excluded_user_agents"]=>
        string(0) ""
        ["group"]=>
        string(0) ""
        ["type"]=>
        string(7) "website"
        ["keep_url_fragment"]=>
        string(1) "0"
        ["creator_login"]=>
        string(9) "anonymous"
        ["timezone_name"]=>
        string(7) "Austria"
        ["currency_name"]=>
        string(9) "US Dollar"
      }
    }
    
    array(2) {
      [0]=>
      string(216) "HTTP/1.1 200 OK
    Date: Wed, 02 Oct 2019 18:28:39 GMT
    Server: Apache/2.4.29 (Ubuntu)
    X-Matomo-Request-Id: 552bd
    Cache-Control: must-revalidate
    Content-Length: 487
    Content-Type: application/json; charset=utf-8
    
    "
      [1]=>
      string(160) "https://stats.domain.at/?module=API&method=API.getBulkRequest&format=json&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(215) "HTTP/1.1 200 OK
    Date: Wed, 02 Oct 2019 18:28:39 GMT
    Server: Apache/2.4.29 (Ubuntu)
    X-Matomo-Request-Id: e62ba
    Cache-Control: must-revalidate
    Content-Length: 18
    Content-Type: application/json; charset=utf-8
    
    "
      [1]=>
      string(183) "https://stats.domain.at/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DSitesManager.getSitesIdFromSiteUrl%26idSite%3D1%26url%3Dhttps%3A%2F%2Fdomain.at&token_auth=..."
    }
    
    array(2) {
      ["global_settings"]=>
      array(67) {
        ["revision"]=>
        string(10) "2019072901"
        ["last_settings_update"]=>
        string(10) "1570040904"
        ["piwik_mode"]=>
        string(4) "http"
        ["piwik_url"]=>
        string(23) "https://stats.domain.at/"
        ["piwik_path"]=>
        string(14) "/var/www/stats"
        ["piwik_user"]=>
        string(0) ""
        ["matomo_user"]=>
        string(0) ""
        ["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(8) {
          ["administrator"]=>
          string(1) "1"
          ["editor"]=>
          string(1) "0"
          ["author"]=>
          string(1) "0"
          ["contributor"]=>
          string(1) "0"
          ["subscriber"]=>
          string(1) "0"
          ["customer"]=>
          string(1) "0"
          ["shop_manager"]=>
          string(1) "0"
          ["translator"]=>
          string(1) "0"
        }
        ["perpost_stats"]=>
        string(1) "0"
        ["plugin_display_name"]=>
        string(9) "WP-Matomo"
        ["piwik_shortcut"]=>
        string(1) "0"
        ["shortcodes"]=>
        string(1) "0"
        ["track_mode"]=>
        string(7) "default"
        ["track_codeposition"]=>
        string(6) "header"
        ["track_noscript"]=>
        string(1) "0"
        ["track_nojavascript"]=>
        string(1) "0"
        ["proxy_url"]=>
        string(23) "https://stats.domain.at/"
        ["track_content"]=>
        string(8) "disabled"
        ["track_search"]=>
        string(1) "1"
        ["track_404"]=>
        string(1) "1"
        ["add_post_annotations"]=>
        array(4) {
          ["post"]=>
          string(1) "1"
          ["page"]=>
          string(1) "1"
          ["product"]=>
          string(1) "1"
          ["shop_coupon"]=>
          string(1) "1"
        }
        ["add_customvars_box"]=>
        string(1) "1"
        ["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"
        ["filter_limit"]=>
        string(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(1) "1"
        ["noscript_code"]=>
        string(115) "<noscript><p><img src="https://stats.domain.at/matomo.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>"
        ["tracking_code"]=>
        string(619) "<!-- Matomo -->
    <script type="text/javascript">
      var _paq = window._paq || [];
      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="https://stats.domain.at/";
        _paq.push(['setTrackerUrl', u+'matomo.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+'matomo.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <!-- End Matomo Code -->
    "
        ["last_tracking_code_update"]=>
        string(10) "1570040904"
        ["dashboard_revision"]=>
        string(1) "0"
      }
    }
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Please help, can’t get it to work’ is closed to new replies.