feat(general): add analytics code. fixes #9