adding analytics helper to history