Table of Contents

What could be more thrilling than the discovery of water on Mars?? Here at Mission Control, a close second is a new version of WP Rocket!

Version 3.1 is now in orbit and ready for docking with your website. You won’t want to miss these stellar new features!

Host Google Analytics Locally

Unless you’re a huge fan of irony, you may be tired of Google telling you to “leverage browser caching” for their Analytics tracking files.

In 3.1 we’ve introduce a new one-click, Google Tracking add-on to take care of hosting these files locally. This means that the correct browser caching rules can be applied… “Leverage browser caching” warnings be gone!

⚠️ Update: As of WP Rocket 3.9, the Google tracking add-on is not in place anymore. We now recommend enabling the Delay JavaScript execution option to optimize 3rd party scripts and address the PageSpeed Insights audit.

[optin-monster slug=”vhommyfcghnxb3ebtozu”]

Minify & Combine Inline JavaScript and External JavaScript

Another pain point of Google PageSpeed is the infamous “remove render-blocking JavaScript” message.

In 3.1 we’ve revamped our minify and combine JS feature. This one should make getting rid of render-blocking JS messages a breeze. Now when you activate Combine JavaScript Files, we take all inline JS code and all external JS files and include them in one combined JS file loaded in the footer of your site. Voila, no more render-blocking!

Activate it in: File Optimization > JavaScript Files > Minify, Combine

WP Rocket - Minify and Combine JavaScript

Optimization of WooCommerce’s get refreshed fragments

If you run speed tests for your site you’ll be used to seeing that long bar for:
?wc-ajax=get_refreshed_fragments

amerce -get_refreshed_fragments

In WP Rocket 3.1, that request will be optimized to reduce the load time.

Activate it in: In 3.1, WP Rocket automagically optimizes and shortens this request. There’s no need to activate this feature, it just happens!

More details

Compatibility for WPML and WooCommerce Multilingual

We also have an important new compatibility to announce between WPML and WooCommerce Multilingual. Now changing currency is caching compatible so that prices are correctly displayed. Meteor-sized thanks go to David Watkins for making that happen!

Requirements

In WP Rocket 3.1 the minimum WordPress requirement has been increased from 4.2 to 4.7.  The PHP requirement remains 5.4 or higher.

Version 3.1 also contains numerous other bug fixes and enhancements!
Read all the details in our changelog

If you’re a customer of WP Rocket, consider joining our Facebook community for WP Rocket users. Share your success stories as well as product feedback.


Comments (18)

Hey Rocket Team,

I'm interested in the Google Analytics addon feature. However, my concern is that I'm currently using the MonsterInsights Pro version for my Google Analytics tracking with Enahnced eCommerce and everything else.

How compatible will it be if I attempt to run both at the same time?

Cheers,

Matt

Hi Rocketeers,

can you give us a bit more insight into what you do behind the curtains when it comes to the new GA feature? The 2 hour expiry date is probably no accident by Google. Have you looked into how frequently Google changes their tracker's code? How do you handle updates to the GA tracker. Do you constantly check and update the local version? Would be great to know how you approached this feature and made sure that it doesn't cause any problems down the line.

cheers,
Dave

Google Analytics, If there is more for facebook then great. :)

Hello
what will happen if Google will change the logic of the js files?
https://www.google-analytics.com/analytics.js
https://www.googletagmanager.com/gtag/js
Thank you
mauro

@David Mondok
There is a cron job that will update the Analytics local cache every week.

My problem is that the feature does not work on my 4 sites. Google Insights show still the Browser Caching problem.

Is it possible to *not* have inline js combined and minified? I have a couple of chunks of js inline and the minification/combination is breaking it :(

Hi,

does the new "Add-ons > Google Tracking" feature also work when I use the Google Tag Manager Script?

Best Regards Marc

Great feature, currently i am using another google analytics plugin if i activate with it does any problem with calculating the page views?
I mean 2 scripts loaded and page views will be counted twice?
Waiting for your reply,
Thanks..

Hello,

I'm already un-enqueuing ?wc-ajax=get_refreshed_fragments on all but cart and checkout pages where they should be used. Will this update interfere with that functionality in any way?

Thanks!

Hey guys,

if I activate the boxes on summarize JavaScript and/or LazyLoad JavaScript in WP Rocket Google Analytics is not working anymore. With these two features activated, the page is significantly faster and gets a better Google PageSpeed Score. But I also want to use Google Analytics of course ;-) Any workarounds?

Thanks!

Related Articles of Inside WP Rocket
Subscribe to Our Newsletter

Stay in the loop with the latest WordPress and web performance updates.
Straight to your inbox every two weeks.

Get a Faster Website
in a Few Clicks

Setup Takes 3 Minutes Flat
Get WP Rocket Now