publish: feature(analytics): track performance of state changes

generated from commit b3d15525b0a25d6beb32b9ec746a223027661367