System Design · Middle · Question 43 of 75

How do you send analytics events efficiently?

Explanation

Batching reduces the number of requests and the load on the main thread. On visibilitychange to hidden, the remainder is sent via sendBeacon. User consent (cookie consent) must be respected.

Further reading

Problem with a question

System Design · Middle · question 43

Test yourself

Take the System Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz