Add base analytics helper