• Hello,
    I have installed some months ago WP Piwik for my WordPress website : http://compagnon.si-deploiement.erdf.fr

    I can not see any data for my most recent pages (I have more than 480 pages in total), is this normal? How can I fix this?

    Below you can see the Testscript Result from my WP Piwik settings.

    Thank you for your help.

    Regards,

    WP-Piwik 1.0.4
    Mode: php
    
    Test 1/3: global.getPiwikVersion
    
    array(1) {
      ["value"]=>
      string(6) "2.14.3"
    }
    
    bool(false)
    
    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
    
    array(1) {
      [0]=>
      array(16) {
        ["idsite"]=>
        int(1)
        ["name"]=>
        string(25) "ZED332UP - MonCompagnonSI"
        ["main_url"]=>
        string(39) "http://compagnon.si-deploiement.erdf.fr"
        ["ts_created"]=>
        string(19) "2015-09-29 09:07:39"
        ["ecommerce"]=>
        int(0)
        ["sitesearch"]=>
        int(1)
        ["sitesearch_keyword_parameters"]=>
        string(0) ""
        ["sitesearch_category_parameters"]=>
        string(0) ""
        ["timezone"]=>
        string(12) "Europe/Paris"
        ["currency"]=>
        string(3) "USD"
        ["excluded_ips"]=>
        string(0) ""
        ["excluded_parameters"]=>
        string(0) ""
        ["excluded_user_agents"]=>
        string(0) ""
        ["group"]=>
        string(0) ""
        ["type"]=>
        string(7) "website"
        ["keep_url_fragment"]=>
        int(1)
      }
    }
    
    array(1) {
      [0]=>
      string(96) "module=API&format=json&method=SitesManager.getSitesWithAtLeastViewAccess&idSite=1&token_auth=..."
    }
    
    Test 3/3: SitesManager.getSitesIdFromSiteUrl
    
    array(1) {
      [0]=>
      array(1) {
        ["idsite"]=>
        int(1)
      }
    }
    
    array(1) {
      [0]=>
      string(132) "module=API&format=json&method=SitesManager.getSitesIdFromSiteUrl&idSite=1&url=http://compagnon.si-deploiement.erdf.fr&token_auth=..."
    }
    
    array(2) {
      ["global_settings"]=>
      array(57) {
        ["revision"]=>
        string(10) "2015092001"
        ["last_settings_update"]=>
        string(10) "1458222158"
        ["piwik_mode"]=>
        string(3) "php"
        ["piwik_url"]=>
        string(42) "http://zed332up.distribution.edf.fr/piwik/"
        ["piwik_path"]=>
        string(75) "/appli/projects/lynkydepcompagnon/apache_2.4/htdocs/lynkydepcompagnon/piwik"
        ["piwik_user"]=>
        string(0) ""
        ["piwik_token"]=>
        string(3) "set"
        ["auto_site_config"]=>
        string(1) "1"
        ["default_date"]=>
        string(13) "current_month"
        ["stats_seo"]=>
        string(1) "0"
        ["dashboard_widget"]=>
        string(8) "disabled"
        ["dashboard_chart"]=>
        string(1) "1"
        ["dashboard_seo"]=>
        string(1) "1"
        ["toolbar"]=>
        string(1) "1"
        ["capability_read_stats"]=>
        array(9) {
          ["administrator"]=>
          string(1) "1"
          ["editor"]=>
          string(1) "0"
          ["author"]=>
          string(1) "0"
          ["contributor"]=>
          string(1) "0"
          ["subscriber"]=>
          string(1) "0"
          ["helpdesk"]=>
          string(1) "0"
          ["pending"]=>
          string(1) "0"
          ["ap_moderator"]=>
          string(1) "0"
          ["ap_participant"]=>
          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) "footer"
        ["track_noscript"]=>
        string(1) "0"
        ["track_nojavascript"]=>
        string(1) "0"
        ["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(7) {
          ["administrator"]=>
          string(1) "1"
          ["editor"]=>
          string(1) "1"
          ["author"]=>
          string(1) "1"
          ["contributor"]=>
          string(1) "1"
          ["pending"]=>
          string(1) "1"
          ["ap_moderator"]=>
          string(1) "1"
          ["ap_participant"]=>
          string(1) "1"
        }
        ["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"
        ["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(1) "1"
        ["noscript_code"]=>
        string(0) ""
        ["tracking_code"]=>
        string(764) "<!-- Piwik -->
    <script type="text/javascript">
      var _paq = _paq || [];
      _paq.push(['setCustomVariable',1,"Utilisateur", jQuery('.ap-user-name').html(),"visit"]);
    _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="//zed332up.distribution.edf.fr/piwik/";
        _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="//zed332up.distribution.edf.fr/piwik/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"
      }
    }

    https://wordpress.org/plugins/wp-piwik/

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

    (@braekling)

    The test script result looks fine. Did you check your pages source code? Is the tracking code added as expected? If so, can you check if JavaScript errors appear?

    Thread Starter theoerdf

    (@theoerdf)

    Hello,
    sorry for being unreactive. I have used the plugin WP-Piwik so far, I thought I did not need to add any code on my pages with this option? I am not an expert in any kind of code.
    Thanks for your answer, your help will be fulle appreciated.

    Plugin Author braekling

    (@braekling)

    WP-Piwik will add the code automatically if you enable “Add tracking code”. But for different reasons, this may not work, e.g. if your theme does not call wp_footer (no tracking code is added to your page), or if some JavaScript conflicts appear (the tracking code is added, but not properly executed).

    Check the WP-Piwik settings. If “Add tracking code” is enabled, have a look at the shown tracking code. Look for this code inside your blog’s source code. Does it appear? (You should log out before you check this.)

    If it appears, check for JavaScript errors: https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Piwik does not track some of my pages’ is closed to new replies.