use segmentio/analytics-events to keep server/client side in sync