• Resolved Ujiki.oO

    (@ujikioo)


    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.

    • This topic was modified 2 years, 7 months ago by Ujiki.oO.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thanks for reaching out to us. We have already removed the Google analytics code and TID is not mandatory in our plugin. Please upgrade to the latest version and let us know if you still face any issues.

Viewing 1 replies (of 1 total)
  • The topic ‘Do you not clone WP on multiple web servers?’ is closed to new replies.