Analytics
7K members online now
7K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Google Analytics Enhanced Ecommerce payload too big on checkout

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Question on Stackoverflow: Google Analytics Enhanced Ecommerce payload too big on checkout

 

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



1 Expert replyverified_user

Re: Google Analytics Enhanced Ecommerce payload too big on checkout

Top Contributor
# 2
Top Contributor
Hi,

Please check the article below about overcoming the 8k limit by splitting the payload into multiple hits.

https://www.savio.no/analytics/easier-enhanced-ecommerce-product-promo-tracking

Hope this helps.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: Google Analytics Enhanced Ecommerce payload too big on checkout

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
I don't see in the blog how to solve the issue for transactions purchase events

Re: Google Analytics Enhanced Ecommerce payload too big on checkout

Top Contributor
# 4
Top Contributor
Hi,

You can use product data import:

https://support.google.com/analytics/answer/6066852?hl=en&ref_topic=6231233

Once you upload your catalog with the product details, you only need to send product ids with transaction data.

Hope it can help you resolving the issue with the payload limit.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Google Analytics Enhanced Ecommerce payload too big on checkout

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

yes it seems like something that will solve the issue, the problem is that our catalog is pretty dynamic which will force updating the catalog manually on a daily basis. More than that what will happen if from time to time I'll send a product id that we didn't upload its data in advance?