I've updated to 6.x-2.0 version on first february, and since that date my Piwik installation stop tracking content. I've installed an instance of piwik on my website.

Module is using asynchronous mode,I checked the code and seems equal to the code specified on Piwik website ( http://piwik.org/docs/javascript-tracking/#toc-asynchronous-tracking ).

Now I've disabled the module and used the sunchronous code.

CommentFileSizeAuthor
statistics from my piwik installation6.92 KBend0rama

Comments

hass’s picture

Status: Active » Postponed (maintainer needs more info)

Needs link to site in question with piwik module 2.0 installed. Please also tell me your piwik version. I have tested with piwik 1.1.1 and it worked. You ran the update hooks?

j0nathan’s picture

Status: Postponed (maintainer needs more info) » Active

Hi,
Same issue since I updated to 6.x-2.0 on February 2nd: 0 visit registered in the Piwik server.

module Piwik Web analytics 6.x-2.0
with Piwik 1.1.1

Site in question with piwik module 2.0 installed: http://cdhal.org

hass’s picture

I cannot see anything wrong in the tracker code... Can you try disabling local caching first, please?

j0nathan’s picture

I disabled the core Drupal caching mode (admin/settings/performance) and "Boost - Static page cache" (admin/settings/performance/boost). I removed the check mark to "Cache tracking code file locally" (admin/settings/piwik).

hass’s picture

Title: Piwik stop tracking after module update » Piwik stopped tracking after module update / Piwik server 1.1 or later is required
Category: bug » support
Status: Active » Fixed

Tried it again on my own site and it works, well.

I guess I found the source of this issue. It's not the local piwik JS file caching itself, but there seems to be an outdated piwik version on your server. Your piwik.js starts with:

/*
 * Piwik - Web Analytics
 *
 * @link http://piwik.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 * @version $Id: piwik.js 2967 2010-08-20 15:12:43Z vipsoft $
 */
var Piwik,piwik_log,piwik_track;if(!this.Piwik)

but mine with:

/*
 * Piwik - Web Analytics
 *
 * JavaScript tracking client
 *
 * @link http://piwik.org
 * @source http://dev.piwik.org/trac/browser/trunk/js/piwik.js
 * @license http://www.opensource.org/licenses/bsd-license.php Simplified BSD
 */
var _paq=_paq||[],Piwik=Piwik||

Your Piwik Server is therefore not the latest v1.1.1 or at least v1.1 that is rated critical (security issues)! Open the https://[mypiwikserver]/piwik.js file in the piwik server root and you see it does not start with the same like mine... Piwik 1.1 seems to be required. As per http://piwik.org/changelog/ says 1.1 is the first version with Asynchronous Piwik Tracking. So, this is now required.

Aside J0nathan, your site is really awful ***slow***... 27s to load the frontpage - horrible!

hass’s picture

Added into known issues section on project home.

j0nathan’s picture

It works now.

What happened is the server side was telling me it's at version 1.1.1. Since a couple of versions, I updated it automatically with the functionality in the Piwik server. But it seems it didn't it well. It didn't updated the file piwik.js. So I re-installed the last version 1.1.1 and I copied the file config.ini.php like the old way to update Piwik server. I re-enabled all caching on the Drupal site and I can see visits for today.

Thanks hass

Sorry for the latency of the site, this is a big one and we are working on this :)

end0rama’s picture

Ok I've updated Piwik to 1.1.1 from 1.0 and now works again!

Thanks for the support!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.