[ENG-1789] Plausible ping every 10 minutes (#2572)

Update index.tsx
This commit is contained in:
ameer2468 2024-06-27 15:58:26 +03:00 committed by GitHub
parent 4735adcb66
commit e2253bc5ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -153,7 +153,7 @@ function usePlausible() {
useEffect(() => {
const interval = setInterval(() => {
plausibleEvent({ event: { type: 'ping' } });
}, 270 * 1000);
}, 600 * 1000); // 10 minutes
return () => clearInterval(interval);
}, [plausibleEvent]);