set analytics code