Site logo

Archived topic

Content not update and google analytic tracking code can't not save

2 replies · Started by Gupta on August 10, 2021

Viewing posts 1–3 of 3

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.

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.

yes but don't solve problem

This archived topic is closed to new replies.