adding analytics