adding analytics feature