[fix] reintroduce the custom npm analytics script and initialization