Since the Google Analytics code is now changed in the recent times. So I would suggest you to add this code in other place at Theme Options => General https://d.pr/i/cWys23 along with the script tags(Your full code)