[update] added analytics code