adding analytics to dox