Sometimes it happened while you update the version from the current version to the new version cache served from the previous version.
Could you please verify it by removing the cache (from the cache folder)?
Thread Starter
dankop
(@dankop)
Can you specify which cache folder? Is it breeze/inc/cache? And should I remove all contents from that folder?
No, you may remove wp-content/cache/breeze. Basically, the folder contains the cache of the application.
Thread Starter
dankop
(@dankop)
That folder is already empty for me, there’s nothing to delete. I’m using Varnish and Cloudways CDN, could it be because of that?
I any case, I purged Varnish, and purged the Cloudways CDN cache, but the issue still persists.
No there is no conflict with CDN and you also purge the varnish means the cache of varnish is cleared. There is another conflict with any JS code rendering from the activated theme/folder.
could you please verify that is there any console error of js in the Network application tab?
Thread Starter
dankop
(@dankop)
I’m not seeing any errors in the console, but this exceeds my knowledge. I guess I can leave a link to the website, and you can see it yourself. I’ll leave the Breeze activated for a day.
https://www.groundguitar.com/
I’ve just updated Breeze to 1.2.1 and if the JS minification option is enabled, inline script tags are getting removed.
If the same is happening on your site it would explain why the analytics has gone.
That doesn’t sound like the right behaviour to me.
Thread Starter
dankop
(@dankop)
Yup, this is an issue with “Minify Inline JS” option. Disabling it made everything work fine again.
While you enable Include inline JS minification the option creates separate files for each JS code which called JS code. The point you mentioned that analytic code is not shown while enabling the Include inline JS minification basically the analytic script called by JS file which creates by Breeze plugin.
Example
/wp-content/cache/breeze-minification/js/breeze_88aa33dfa19e7db654decd198b0ca361.js
/wp-content/cache/breeze-minification/js/breeze_3a7121c7c81fb4ff6e592c9b156de9de.js
There are several JS files that contain JS code that is minified. If you open the files the analytic script already preset there.
I think I had the same problem and solved it as follows:
Under the Advanced Breeze settings, you need to turn off “Group JS files”.
When Google Analytics functioned correctly for me, in Chrome under the Networks tab, it showed a line at the bottom https://www.google-analytics.com/g/collect?v=2 … . When it did NOT function correctly, this line was missing.
Yes, I can confirm, that this plugin breaks google analytics also fro me.