• Resolved WebNashr

    (@webnashr)


    In my multisite the tracking code is not added to the source and so there is no stats available.

    This is some of my testscript result:
    WP-Piwik 1.0.2
    Mode: http

    Test 1/3: global.getPiwikVersion

    string(6) “2.13.1”

    array(2) {
    [0]=>
    string(360) “HTTP/1.1 200 OK
    Date: Sat, 27 Jun 2015 12:11:53 GMT
    Server: Apache
    X-Frame-Options: SAMEORIGIN
    X-Powered-By: PHP/5.4.35
    Cache-Control: max-age=2592000
    Expires: Mon, 27 Jul 2015 12:11:53 GMT
    Vary: Accept-Encoding,User-Agent
    X-Content-Type-Options: nosniff
    X-XSS-Protection: 1; mode=block
    Content-Length: 23
    Content-Type: text/plain; charset=utf-8


    [1]=>
    string(139) “http://stats.webnashr.com/?module=API&method=API.getBulkRequest&format=php&urls%5B0%5D=method%3DAPI.getPiwikVersion%26idSite%3D1&token_auth=…”
    }

    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess

    array(708) {
    [0]=>
    array(16) {
    [“idsite”]=>
    string(1) “1”
    [“name”]=>
    string(8) “WebNashr”
    [“main_url”]=>
    string(19) “http://webnashr.com”
    [“ts_created”]=>
    string(19) “2014-10-20 19:37:35”
    [“ecommerce”]=>
    string(1) “0”
    [“sitesearch”]=>
    string(1) “1”
    [“sitesearch_keyword_parameters”]=>
    string(0) “”
    [“sitesearch_category_parameters”]=>
    string(0) “”
    [“timezone”]=>
    string(11) “Asia/Tehran”
    [“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”]=>
    string(1) “0”
    }
    [1]=>
    array(16) {
    [“idsite”]=>
    string(1) “2”
    [“name”]=>
    string(21) “اخبار دکتری”
    [“main_url”]=>
    string(17) “http://phdiran.ir”
    [“ts_created”]=>
    string(19) “2014-10-20 19:53:31”
    [“ecommerce”]=>
    string(1) “0”
    [“sitesearch”]=>
    string(1) “1”
    [“sitesearch_keyword_parameters”]=>
    string(0) “”
    [“sitesearch_category_parameters”]=>
    string(0) “”
    [“timezone”]=>
    string(11) “Asia/Tehran”
    [“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”]=>
    string(1) “0”
    }`

    https://ww.wp.xz.cn/plugins/wp-piwik/

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

    (@braekling)

    Did you check your filter settings? Also, please keep in mind that the tracking code is not added if you are logged in as network admin. So please log out and check if the tracking code appears.

    If not:

    • Is it shown on the “add tracking code” page as expected?
    • Can you check your theme’s footer.php? It should call “wp_footer()”.
    • Are you using a caching solution which may cause an delay in applying changes?
    Thread Starter WebNashr

    (@webnashr)

    I saved the settings again and the problem is gone, thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multisite tracking script is not added’ is closed to new replies.