Google analytics logic in the theme