Title: Multisite tracking script is not added
Last modified: August 30, 2016

---

# Multisite tracking script is not added

 *  Resolved [WebNashr](https://wordpress.org/support/users/webnashr/)
 * (@webnashr)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/multisite-tracking-script-is-not-added/)
 * 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=…&#8221](http://stats.webnashr.com/?module=API&method=API.getBulkRequest&format=php&urls%5B0%5D=method%3DAPI.getPiwikVersion%26idSite%3D1&token_auth=…&#8221);}
 * 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&#8221](http://webnashr.com&#8221);[“
   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&#8221](http://phdiran.ir&#8221); [“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://wordpress.org/plugins/wp-piwik/](https://wordpress.org/plugins/wp-piwik/)

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

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/multisite-tracking-script-is-not-added/#post-6274061)
 * 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](https://wordpress.org/support/users/webnashr/)
 * (@webnashr)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/multisite-tracking-script-is-not-added/#post-6274173)
 * 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.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WebNashr](https://wordpress.org/support/users/webnashr/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/multisite-tracking-script-is-not-added/#post-6274173)
 * Status: resolved