Home › Forums › Support › Analytics script This topic has 5 replies, 3 voices, and was last updated 5 years, 9 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts December 4, 2019 at 3:56 am #1092905 Álvaro Hello dear Generate Press team. When we update your theme or plugin, Google analytics script is deleted… I think you can improve this. Thanks December 4, 2019 at 9:03 am #1093351 LeoStaff Customer Support Hi there, How did you add the code? Let me know 🙂 December 5, 2019 at 1:43 am #1094201 Álvaro Hello leo, I add it at header.php in Editor theme.. Here in other web with your theme-plugin: http://alvaropicho.com/wp-admin/theme-editor.php?file=header.php&theme=generatepress Do you recommend me other way? December 5, 2019 at 3:04 am #1094269 DavidStaff Customer Support Hi there, you should never edit the Theme files as they will always be overwritten when the theme is updated. Instead use a Hook Element: https://docs.generatepress.com/article/hooks-element-overview/ You will add your code to its content, select the WP_Head hook and set the Display Rules to Entire Site. December 5, 2019 at 3:29 am #1094318 Álvaro Perfect, I done! thank you David and Leo December 5, 2019 at 5:17 am #1094421 DavidStaff Customer Support Glad we could be of help Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In