New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goals & archiving settings #5132
Comments
There used to be a bug which I though I fixed in #2981 Which version of Piwik are you using? please try with latest. |
Sorry - forgot to mention the version. I wrote the above report when I was on 2.2.3-b1. I have to mention that my server is not using async writes but the fs is mounted with sync writes (because once when it was using async it crashed and I had to spend an afternoon to bring back the DB in a usable state), so in my case I am probably suffering more than others who are using full async. |
Thats normal if you setup timeout to 10 seconds that Piwik re-processes the data after 10 seconds. To test, set the timeout to 1 hour, then wait one hour + wait that the archive cron has executed. Then visit the Goal report -> does it load instantly? if yes, all is working. If it's still slow to load, then it means the archive cron did not process the Goal data and that's a bug (which is #2981) |
Please re-open if it does not work for you, as this is important to make sure it works :) |
So, since yesterday evening the timeout ("General settings => reports for today will be processed at most every") is set to "3600" seconds. The current time on my server is: dateWed May 14 19:05:57 CEST 2014 On the server the last archive cronjob ran 5 minutes ago and it is scheduled to run every 30 minutes (for unknown reasons the time that the archiver generates in its logs while it runs is always "localtime - 2hrs" (UTC?) but all other apps and webpages and programs I have don't have this problem - my php.ini does contain "date.timezone = Europe/Zurich"): When I now go to the dashboard of website #1 and have a look at any goal I have to wait for the usual 40 seconds - once that first goal has loaded/is displayed any other goal of website #1 loads immediately. And again: this happens only with the goals - all other stats behave as I expect. |
you're using 2.2.3 could you first check to upgrade to 2.3.0 ? I don't think this will fix it, but it's important to be sure :) I'm reopening the ticket. if you can confirm bug in 2.3.0 please set priority to 'major' and I'll investigate before next release! |
Hi |
I've just read again your ticket description and now I understand the problem. It actually works as intended! What's happening is that the Goal report, uses segments to process NEW vs Returning visits. Segmented data by default are still allowed even when the archiving is setup. It is possible to tell Piwik to disable ALL browser trigger archiving. This is done by setting this setting to 1 under
I probably should mention this in the User Guide for archiving! |
see also #4569 Add feedback message when a segment is used, and browser_archiving_disabled_enforce = 1 |
I've updated the user guide: http://piwik.org/docs/setup-auto-archiving/ and added: By default, when you disable browser triggers for Piwik archiving, it does not completely disable the trigger of archiving as you might expect. Users browsing Piwik will still be able to trigger processing of archives in one particular case: when a Custom segment is used. To ensure that users of your Piwik will never trigger any data processing, in your config.ini.php file you must add the following setting below the [General] category: ; disable browser trigger archiving for all requests (even those with a segment) |
Great, thanks a lot!! :) |
Hi
(this might just be a misunderstanding)
Assumption:
When I set under "_Settings => General settings => Archiving settings => Allow Piwik archiving to trigger when reports are viewed from the browser..._" the radio-button to "No" I expect that ALL archiving activities are performed by the cronjob.
My problem:
I can reproduce the behaviour that with the above setting set to "No", displaying any "Goal" takes quite a long time (~40 seconds for my small website) if the "_Settings => General settings => Archiving settings => Reports for today will be processed at most every..._" is set to a low value (e.g. 10 seconds), but it will be superfast if it's set to a high value (e.g. 3600 seconds).
The data involving the Goals seems therefore to be computed "live"/online as soon as the 2nd setting expires - the 1st one does not seem to have any impact on it => is this the desired behaviour? If yes then wouldn't it be better to keep every report (including the Goals) behaving the same way?
Thank you!
Btw: compliments! Great SW!!
Keywords: goals performance
The text was updated successfully, but these errors were encountered: