I went ahead and entered the settings into the database. It was the only way I could get this to work. Only I’m not sure it’s working.
As I mentioned — and I did try it again just now — I think WooCommerce is the problem. And I can’t disable it because this plugin requires it to function.
I used the plugin Health Check & Troubleshooting to disable every plugin except WooCommerce and WooCommerce Google Analytics Integration, and the problem persists: A 404 error when I try to save the settings.
Here’s the log file (paths and line numbers obfuscated):
[21-Jun-2022 21:36:21 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 524288 bytes) in XX/wp-content/plugins/woocommerce/i18n/states.php on line X
[21-Jun-2022 21:36:25 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in XX/wp-includes/plugin.php on line X
[21-Jun-2022 21:36:25 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32768 bytes) in XX/wp-content/plugins/woocommerce/includes/class-wc-log-levels.php on line X
[21-Jun-2022 21:36:31 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32768 bytes) in XX/wp-content/plugins/woocommerce/includes/shipping/flat-rate/includes/settings-flat-rate.php on line X
[21-Jun-2022 21:36:31 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32768 bytes) in XX/wp-content/plugins/woocommerce/includes/class-wc-log-levels.php on line X
[21-Jun-2022 21:37:15 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 53248 bytes) in XX/wp-content/plugins/woocommerce/i18n/states.php on line X
[21-Jun-2022 21:37:15 UTC] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32768 bytes) in XX/wp-content/plugins/woocommerce/includes/class-wc-log-levels.php on line X
Since I was able to enter the settings directly into the database, I’ll probably be OK without fixing this.
But how can I tell if the plugin is working?
And this takes me back to a more fundamental question that arose when I discovered the WooCommerce Google Tag Manager integration plugin: Why is this plugin needed? Does Google Analytics not already capture the data because of the embed code? Should I use the GTM plugin instead — or in addition? I took the basic GTM and GA4 LinkedIn courses, but it’s still opaque to me and I don’t think they talk about WooCommerce. Is there a resource that would spell all of this out?
Thanks!