better analytics code position