Media Analytics ping interval cannot be set to 1 second

Hello,

I would like to set the ping interval for the media analytics plugin to 1 second according to the following description:
https://developer.matomo.org/guides/media-analytics/faq

Unfortunately the following error message comes up
medianalyticsfehler

What am I doing wrong?

Pete

Hi Pete,

Thanks for pointing this out. There is an error in the documentation the minimum time is 10 seconds.

Thanks,

Hi Jason,

thank you for your answer.
10 seconds is too long. Not all visitor actions are tracked. Is there no way to shorten the time?

@Jason_1282 we still have the problem. Is there no solution here? 10 seconds is an eternity!

@innocraft, any return?

Hi @Pete_Trombone sorry for the delay.

Yes, it is possible by calling the method setPingInterval . By default, an update is sent every 5 seconds. Sending the ping more frequently can be useful to get a bit more accurate statistics, sending it less frequently can be useful to reduce the amount of traffic your server has to handle.

var intervalInSeconds = 2;
_paq.push(['MediaAnalytics::setPingInterval', intervalInSeconds]);

Make sure to call this method as early as possible, for example just after _paq.push(['setSiteId', 'X']);

You can learn more here https://developer.matomo.org/guides/media-analytics/faq

If you still have issues can you please get in touch with us directly on shop@matomo.org

@V.K many thanks for the answer.
But jason wrote above (Media Analytics ping interval cannot be set to 1 second - #2 by Jason_1282) that there is an error in the documentation and that the minimum is 10 seconds. What is now correct?

Hi @Pete_Trombone when you attempt to lower intervalInSeconds do something like 2. Do you receive any errors as before?