- January 22, 2019 at 8:50 am #43875gaddyParticipant
After the new update of the theme, my Google Analytics and Google AdSense scripts which are located in the header of the theme header.php have disappeared. Why? I had to enter them manually again. Is it normal to happen this?January 23, 2019 at 6:42 am #43971acmesupportsModerator
Did you enter the Google Analytics and Google AdSense scripts in child theme or directly in parent theme header ? If you directly customize the parent theme header then it is normal that it will be disappeared on theme update.The best way to customize any theme through creating child theme. So, we recommend you to create child theme and add the scripts in child theme header file which protect your modification form parent theme update.January 25, 2019 at 8:21 am #44160gaddyParticipant
Good question. No I did not install the child theme. I do not even know what is the same of child theme? How’s called and where I can find it? At the mmoment there is not a child theme developed and launched to install it.
Well I copied and pasted the analytics code and adsense directly in the header of the theme
January 28, 2019 at 12:38 pm #44363acmesupportsModerator
- This reply was modified 4 years ago by gaddy.
Yeah, you have to add it.
- You must be logged in to reply to this topic.