Site logo

Archived topic

Analytics script

5 replies · Started by Álvaro on December 4, 2019

Viewing posts 1–6 of 6

Hello dear Generate Press team.

When we update your theme or plugin, Google analytics script is deleted... I think you can improve this.

Thanks

Hi there,

How did you add the code?

Let me know :)

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.

Perfect, I done!

thank you David and Leo

Glad we could be of help

This archived topic is closed to new replies.