add analytics in a file