Skip to content
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

this.setRequestQueueInterval() doesn't work as expected #17291

Closed
Sayeeda12 opened this issue Mar 2, 2021 · 1 comment
Closed

this.setRequestQueueInterval() doesn't work as expected #17291

Sayeeda12 opened this issue Mar 2, 2021 · 1 comment
Labels
invalid For issues or pull requests that are no longer relevant to Matomo core.

Comments

@Sayeeda12
Copy link

Hi colleagues,

   I've been using Matomo library for quite some time now and I recently implemented bulkTracking using the library. I wanted to set an interval for which duration the events will be queued and the bulk request will be sent after this interval.

I got to know that setRequestQueueInterval() can be used to set the queue interval. However, it doesn't work like an interval but rather inactivity time after which request is fired.

What I mean here is - I set the timeout to be 15 seconds and if I start using the application at 4:00:00 pm and used it continuously for 1 minute, I expect that at the end of my 1 min activity, there should be 4 requests fired. However, there's no request fired at all. Rather, there's 1 request fired at 4:01:15 pm, i.e., after 15 seconds of inactivity from 4:01:00 pm.

is this a bug? How do I achieve my requirement? Kindly let me know. Thank you.

@Sayeeda12 Sayeeda12 added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Mar 2, 2021
@sgiehl
Copy link
Member

sgiehl commented Mar 2, 2021

Hi @Sayeeda12,
unfortunately we don't answer questions in this issue tracker but only handle feature requests or bug reports. It'd be better to ask this question in our forum: https://forum.matomo.org/ .

Btw. It seems you maybe misunderstood the purpose of bulktracking. Bulktracking is a technique to send multiple tracking requests at once. Those tracking requests still need to be fired using trackPageView, trackEvent or similar. See https://developer.matomo.org/api-reference/tracking-api#bulk-tracking

@sgiehl sgiehl closed this as completed Mar 2, 2021
@sgiehl sgiehl added invalid For issues or pull requests that are no longer relevant to Matomo core. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid For issues or pull requests that are no longer relevant to Matomo core.
Projects
None yet
Development

No branches or pull requests

2 participants