It seems like:
ga('send', 'pageview');
Doesn't know how to handle large payload (over 8K), when we're sending a large transaction with more than 100 products, the page impression just tries to send all the items in a single beacon post.
products.forEach(product => ga('ec:addProduct', ...) ) // 100 products
ga('ec:setAction', 'purchase', ...)
ga('send', 'pageview');
Which results in
raven.js:80 Payload size is too large (11352). Max allowed is 8192.
We are just following the documentation on: enhanced-ecommerce#measuring-transactions