Module Live - getCounter is wrong:(


#1

Hi

I’m using the Live module to try and get the number of visitors in the last 5 minutes.

The example for this on the modules page shows:
Live.getCounters (idSite, lastMinutes, segment = ‘’)

This is the API request i am passing in my index.php:


      $request = new Piwik_API_Request
         ("
         method=Live.getCounters
         &idSite=4
         &lastMinutes=5
         &segment=
         &token_auth=anonymous
         &format=json
         ");

Despite this, my index page is still showing the site as having 9 visits and over 60 actions - despite no visits for the last 5 minutes. To check this i have also setup tracking on my localhost - and the same problem is occurring.

How can this be fixed? - I am working to a tight deadline…


(Matthieu Aubry) #2

Are you using latest 1.5RC ? see sticky forum post


#3

No I’m not. I’m using 1.4 but i’ve solved the problem now (sorry forgot to update).

I’ve found piwik a little quirky to get used to but i’m getting there now.