Lightweight usage analytics engine