Who can help me with the following strange issue:
Some pages are measured by Piwik, but most pages are not measured by Piwik. Piwik always worked fine and for some reason just stopped working on some pages. Due to aN update of the server, an update of Wordpress or an update Piwik? Characteristics:
- Piwik 2.4.1
- Wordpress 3.9.1., without piwik plugin
- Piwik script in footer just above <?php wp_footer(); ?> </body>
- Piwik script is the same on every page and displays correct in source code
- Disabeling plugin Ithemes securtity does not help
- Fresh install Piwik did not work.
- No HTML errors or other errors on pages
- Server returns 404-error for Piwik request
Thanks for your help!
Additional information (the Piwik script I am using and the HTTP's requests of a page that works and a page that does not work):
***** PIWIK SCRIPT *****
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['disableCookies']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://zenamsterdam.nl/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.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
***** HTTP HEADER FROM PAGE IN WIHICH PIWIK WORKS ******
GET /piwik/piwik.php?action_name=Zen%20Centrum%20Amsterdam&idsite=1&rec=1&r=733226&h=13&m=24&s=32&url=http%3A%2F%2Fzenamsterdam.nl%2F&urlref=http%3A%2F%2Fzenamsterdam.nl%2Fnieuws&_id=eeeb8e499e89c36c&_idts=1406978673&_idvc=1&_idn=1&_refts=0&_viewts=1406978673&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=1&gears=0&ag=0&cookie=0&res=1920x1080>_ms=854 HTTP/1.1
Host: zenamsterdam.nl
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4
Referer: https://www.youtube-nocookie.com/embed/nfyVzCGhnAo?wmode=transparent&fs=1&hl=en&modestbranding=1&iv_load_policy=3&showsearch=0&rel=0&theme=dark%3Fversion%3D3&autohide=1&showinfo=0&modestbranding=1&ytsession=0UfUzC2n3tmCngm16q__O8gdMmA_Q0V3UT6rMuODfkbRM7Ddx4VWgPypMpzRmydmZxdwa7cv3FTxOOTmkvWTMDPhe7d6GPFEG6CrO6Av2Ki-6Kdq7c97zc8quKA3i7qWg2rNuIg3w41jSpBavVImabsizqckbVtZ6rpbqeU4aDOqdZroAs9NFo7dR8vIq8MwrE56td9aaceNm24uKugDjjA3h8wxb-qwioOzcx7KGfkiW4uL1DA8tFxzm5IHMmbaF9LtNdQXGyN6cUF-baeJC6-DDbUwMNmd1OaWh4zcisKh84SC8FA6srxZjK4vgmKyalRuBh7tiH7SRlZEOL8udQ
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 43
Content-Type: image/gif
Date: Sat, 02 Aug 2014 11:24:32 GMT
Keep-Alive: timeout=1, max=90
Server: Apache/2
Vary: User-Agent
X-Powered-By: PHP/5.4.31
***** HTTP HEADER FROM PAGE IN WIHICH PIWIK DOES NOT WORK ******
GET /piwik/piwik.php?action_name=Zen%20Centrum%20Amsterdam%20%E2%80%93%20Nieuws&idsite=1&rec=1&r=863706&h=13&m=23&s=45&url=http%3A%2F%2Fzenamsterdam.nl%2Fnieuws&urlref=http%3A%2F%2Fzenamsterdam.nl%2F&_id=14c2a8f06598d128&_idts=1406978625&_idvc=1&_idn=1&_refts=0&_viewts=1406978625&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=1&gears=0&ag=0&cookie=0&res=1920x1080>_ms=699 HTTP/1.1
Host: zenamsterdam.nl
Accept: image/webp,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4
Cache-Control: no-cache
Cookie: wp-settings-time-12=1398080640; _pk_id.3.f471=a61ae6f3b253524b.1406365854.2.1406372829.1406365986.; wp-settings-11=wplink%3D1%26hidetb%3D1%26editor%3Dhtml%26uploader%3D1%26imgsize%3Dfull%26mfold%3Do%26align%3Dcenter%26urlbutton%3Dfile%26ngg_show_update_notice196%3D1%26libraryContent%3Dbrowse%26ed_size%3D737; wp-settings-time-11=1406889896; _pk_id.4.f471=2ab6e84b9b76d285.1406885689.3.1406892839.1406889959.
Pragma: no-cache
Referer: http://zenamsterdam.nl/nieuws
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
HTTP/1.1 404 Not Found
Cache-Control: no-cache, must-revalidate, max-age=0
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 2143
Content-Type: text/html; charset=UTF-8
Date: Sat, 02 Aug 2014 11:23:45 GMT
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Keep-Alive: timeout=1, max=90
Pragma: no-cache
Server: Apache/2
Vary: Accept-Encoding,User-Agent
X-Pingback: http://zenamsterdam.nl/xmlrpc.php
X-Powered-By: PHP/5.4.31
******* END HTTP HEADER ********
Some pages are measured by Piwik, but most pages are not measured by Piwik. Piwik always worked fine and for some reason just stopped working on some pages. Due to aN update of the server, an update of Wordpress or an update Piwik? Characteristics:
- Piwik 2.4.1
- Wordpress 3.9.1., without piwik plugin
- Piwik script in footer just above <?php wp_footer(); ?> </body>
- Piwik script is the same on every page and displays correct in source code
- Disabeling plugin Ithemes securtity does not help
- Fresh install Piwik did not work.
- No HTML errors or other errors on pages
- Server returns 404-error for Piwik request
Thanks for your help!
Additional information (the Piwik script I am using and the HTTP's requests of a page that works and a page that does not work):
***** PIWIK SCRIPT *****
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['disableCookies']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://zenamsterdam.nl/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.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
***** HTTP HEADER FROM PAGE IN WIHICH PIWIK WORKS ******
GET /piwik/piwik.php?action_name=Zen%20Centrum%20Amsterdam&idsite=1&rec=1&r=733226&h=13&m=24&s=32&url=http%3A%2F%2Fzenamsterdam.nl%2F&urlref=http%3A%2F%2Fzenamsterdam.nl%2Fnieuws&_id=eeeb8e499e89c36c&_idts=1406978673&_idvc=1&_idn=1&_refts=0&_viewts=1406978673&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=1&gears=0&ag=0&cookie=0&res=1920x1080>_ms=854 HTTP/1.1
Host: zenamsterdam.nl
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4
Referer: https://www.youtube-nocookie.com/embed/nfyVzCGhnAo?wmode=transparent&fs=1&hl=en&modestbranding=1&iv_load_policy=3&showsearch=0&rel=0&theme=dark%3Fversion%3D3&autohide=1&showinfo=0&modestbranding=1&ytsession=0UfUzC2n3tmCngm16q__O8gdMmA_Q0V3UT6rMuODfkbRM7Ddx4VWgPypMpzRmydmZxdwa7cv3FTxOOTmkvWTMDPhe7d6GPFEG6CrO6Av2Ki-6Kdq7c97zc8quKA3i7qWg2rNuIg3w41jSpBavVImabsizqckbVtZ6rpbqeU4aDOqdZroAs9NFo7dR8vIq8MwrE56td9aaceNm24uKugDjjA3h8wxb-qwioOzcx7KGfkiW4uL1DA8tFxzm5IHMmbaF9LtNdQXGyN6cUF-baeJC6-DDbUwMNmd1OaWh4zcisKh84SC8FA6srxZjK4vgmKyalRuBh7tiH7SRlZEOL8udQ
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 43
Content-Type: image/gif
Date: Sat, 02 Aug 2014 11:24:32 GMT
Keep-Alive: timeout=1, max=90
Server: Apache/2
Vary: User-Agent
X-Powered-By: PHP/5.4.31
***** HTTP HEADER FROM PAGE IN WIHICH PIWIK DOES NOT WORK ******
GET /piwik/piwik.php?action_name=Zen%20Centrum%20Amsterdam%20%E2%80%93%20Nieuws&idsite=1&rec=1&r=863706&h=13&m=23&s=45&url=http%3A%2F%2Fzenamsterdam.nl%2Fnieuws&urlref=http%3A%2F%2Fzenamsterdam.nl%2F&_id=14c2a8f06598d128&_idts=1406978625&_idvc=1&_idn=1&_refts=0&_viewts=1406978625&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=1&gears=0&ag=0&cookie=0&res=1920x1080>_ms=699 HTTP/1.1
Host: zenamsterdam.nl
Accept: image/webp,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4
Cache-Control: no-cache
Cookie: wp-settings-time-12=1398080640; _pk_id.3.f471=a61ae6f3b253524b.1406365854.2.1406372829.1406365986.; wp-settings-11=wplink%3D1%26hidetb%3D1%26editor%3Dhtml%26uploader%3D1%26imgsize%3Dfull%26mfold%3Do%26align%3Dcenter%26urlbutton%3Dfile%26ngg_show_update_notice196%3D1%26libraryContent%3Dbrowse%26ed_size%3D737; wp-settings-time-11=1406889896; _pk_id.4.f471=2ab6e84b9b76d285.1406885689.3.1406892839.1406889959.
Pragma: no-cache
Referer: http://zenamsterdam.nl/nieuws
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
HTTP/1.1 404 Not Found
Cache-Control: no-cache, must-revalidate, max-age=0
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 2143
Content-Type: text/html; charset=UTF-8
Date: Sat, 02 Aug 2014 11:23:45 GMT
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Keep-Alive: timeout=1, max=90
Pragma: no-cache
Server: Apache/2
Vary: Accept-Encoding,User-Agent
X-Pingback: http://zenamsterdam.nl/xmlrpc.php
X-Powered-By: PHP/5.4.31
******* END HTTP HEADER ********