Do you not clone WP on multiple web servers?
-
From the experience that the WP of one web server got into an abnormal state, I am cloning the WP on a different web server.
If the WP of a certain Web server breaks down, the clone of the WP can be restored by immediate replacement with the basic URL just by editing the DNS server, but the SQL data by MySQL dump is ported between the clones of the WP and operated.
If you do not set the data in “Add Google Analytics TID”, please disable the processing related to “Add Google Analytics TID” completely.The only file that doesn’t rewrite on different web servers is: wp-config.php
So, if you define “GTAGID” in wp-config.php,
In the theme footer.php,if(defined('GTAGID')){ ?><script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo GTAGID ; ?>"></script><script>(function(a){window.dataLayer=window.dataLayer||[];function b(){dataLayer.push(arguments)}b("js",new Date());b("config",a)})("<?php echo GTAGID ; ?>");</script><?php }else echo '<!-- NOGTAGID -->';
Is defined. Since it will be duplicated, in google-sitemap-generator, if Add Google Analytics TID: is blank, please do not control anything.
The page I need help with: [log in to see the link]
- The topic ‘Do you not clone WP on multiple web servers?’ is closed to new replies.