Skip to content

🔥 feat(analytics): Making analytics queue flushing more robust#185

Merged
Charles Hudson (phobetron) merged 1 commit intomainfrom
NT-2814_more-robust-analytics-queue-flushing
Mar 23, 2026
Merged

🔥 feat(analytics): Making analytics queue flushing more robust#185
Charles Hudson (phobetron) merged 1 commit intomainfrom
NT-2814_more-robust-analytics-queue-flushing

Conversation

@phobetron
Copy link
Copy Markdown
Collaborator

@phobetron Charles Hudson (phobetron) commented Mar 23, 2026

  • Added flushIntervalMs to analytics queue policy (default 30,000ms) and wired periodic flushing while queue is non-empty.
  • Flush now runs on destroy() (best-effort, forced) for both analytics and personalization queues.
  • Added web beforeunload flush trigger into the visibility lifecycle listener.

[NT-2814]

- Added `flushIntervalMs` to analytics queue policy (default 30,000ms) and wired periodic flushing while queue is non-empty.
- Flush now runs on `destroy()` (best-effort, forced) for both analytics and personalization queues.
- Added web `beforeunload` flush trigger into the visibility lifecycle listener.

[[NT-2814](https://contentful.atlassian.net/browse/NT-2814)]
@phobetron Charles Hudson (phobetron) merged commit 58b3453 into main Mar 23, 2026
30 checks passed
@phobetron Charles Hudson (phobetron) deleted the NT-2814_more-robust-analytics-queue-flushing branch March 23, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant