Pinterest events now use the batched event endpoint and the events queue, and are sent in batches.
Fixed
A Pinterest Purchase event is marked "queued" only after the queue has written its row. If the row is not written, the order stays retryable and no Purchase is lost or sent twice.
Works with older Pro versions that have no settleQueued(), falling back to the previous hand-off.
On sites where WP Rocket defers jQuery, Pinterest server events were sent through admin-ajax.php instead of the REST API. The REST address is now printed on the plugin's own script, which WP Rocket leaves alone.
Improved
Faster pages with many products when AddToCart is caught with JavaScript.
Fixed
401 errors on server events for sites with one domain per language (Polylang, WPML).