[Support request] Content not update and google analytic tracking code can’t not save

Home Forums Support [Support request] Content not update and google analytic tracking code can’t not save

Home Forums Support Content not update and google analytic tracking code can’t not save

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1891490
    Gupta

    When i put google analytic tracking code in <head></head> and hit save button they show this massage ( Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.) and another problem is i use elementor page builder but when i update existing blog post and hit update button they show( server error 404 ) but when i create new post then all is ok.

    #1891699
    David
    Staff
    Customer Support

    Hi there,

    you SHOULD NOT edit the Themes files ever, aside of potentially breaking things, any changes you make to the theme files will be lost when the theme is updated.

    To insert codes use the Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    For codes in the <head> – use the wp_head hook
    For codes after the opening <body> tag – use the wp_body_open hook
    For codes in the <footer> – use the wp_footer hook.

    And here we provide a guide on using them for adding Google Tag Manager:

    https://docs.generatepress.com/article/implement-google-tag-manager/

    The same applies to Classic Analytics, the only difference is Classic only requires the code in the head.

    #1891762
    Gupta

    yes but don’t solve problem

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