Site logo

[Resolved] Analytics script

Home Forums Support [Resolved] Analytics script

Home Forums Support Analytics script

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #1093351
    Leo
    Staff
    Customer Support

    Hi there,

    How did you add the code?

    Let me know 🙂

    #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?

    #1094269
    David
    Staff
    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.

    #1094318
    Álvaro

    Perfect, I done!

    thank you David and Leo

    #1094421
    David
    Staff
    Customer Support

    Glad we could be of help

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.