Sending Cookie consent data from a 3rd party cookie consent script in Wordpress to Hubspot

We have figured out that the caching plugin (WP-Rocket) was removing the Business Unit ID from the trackiong code when the “Minify JavaScript files” option was activated. Deactivating “Minify JavaScript files” in WP-Rocket solves this issue.