Facebook Pixel Add-On
When you use a Facebook pixel on your site, it will cause browser caching warnings in PageSpeed, GT Metrix and other performance testing tools:
The Facebook Pixel Add-on resolves this by storing the necessary files on your server, so browser caching will be applied to them.
Activate the Facebook Pixel Add-On
Go to the Add-ons tab in WP Rocket and simply toggle the Facebook Pixel Add-on to on:
We target these files and their variations:
https://connect.facebook.net/{{locale}}/fbevents.js https://connect.facebook.net/signals/config/{{app_id}}?v={{version}}&r={{release_segment}} https://connect.facebook.net/signals/plugins/{{plugin_name}}?v={{version}} https://connect.facebook.net/{{locale}}/sdk.js
The local files will be stored in the /wp-content/cache/busting/facebook-tracking/
folder.
Note: the recommended Facebook and WooCommerce plugin integrations are supported, but Google Tag Manager is not.