Is it possible to split your transaction using Google Analytics Measurement Protocol and still have accurate results?
Problem to tackle: Big Order which exceeds 8000K limit in protocol. I can't shrink them at the moment. I could replace product names to SKU's, but they are necessary.
My solution:
Split products in batches and send them as purchase events. This time I have to set up Revenue = 0 as I don't want to double the order value.
Send 'event' request with basic transaction data: Revenue and Tax. I have to do it in separate call as order can have promo code applied, or value just will be different than product prices.
Example will explain it better. I am using Enhanced Ecommerce
Example:
// Product data 1
v=1
&tid=UA-XXXXXXX-XX
&cid=3957780
&t=event
&ti=0003170270
&ta=24
&tr=0
&ec=WebFlow
&ea=Product+Purchase
&el=Product+Information+part+0
&pr1id=PRODUCTCODE48781876
&pr1nm=Classroom+Store+12+Bin+Mobile
&pr1pr=219.99
&pr1qt=3
&pr2id=PRODUCTCODE48781850
&pr2nm=Classroom+Store+9+Bin+Mobile
&pr2pr=174.99
&pr2qt=1
&pr3id=PRODUCTCODE1001651
&pr3nm=Hotpoint+Electronic+Cooker
&pr3pr=24.99
&pr3qt=3
&pr4id=PRODUCTCODE248696
&pr4nm=Snap+Together+Letter+Blocks
&pr4pr=59.99
&pr4qt=3
&pa=purchase
&dh=Host
&dp=Page
&dt=Title
// Product data 2
v=1
&tid=UA-XXXXXXX-XX
&cid=3957780
&t=event
&ti=0003170270
&ta=24
&tr=0
&ec=WebFlow
&ea=Product+Purchase
&el=Product+Information+part+1
&pr1id=PRODUCTCODE48789936
&pr1nm=Pedal+Trike+X+2
&pr1pr=299.98
&pr1qt=5
&pr2id=PRODUCTCODE1004354
&pr2nm=Talking+Tubes
&pr2pr=15.99
&pr2qt=3
&pr3id=PRODUCTCODE1004360
&pr3nm=Talking+Tubes+Exchange+Group+Pack
&pr3pr=49.99
&pr3qt=5
&pr4id=PRODUCTCODE176390
&pr4nm=Winter+Feathers
&pr4pr=2.05
&pr4qt=2
&pa=purchase
&dh=Host
&dp=Page
&dt=Title
// Product data 3
v=1
&tid=UA-XXXXXXX-XX
&cid=3957780
&t=event
&ti=0003170270
&ta=24
&tr=0
&ec=WebFlow
&ea=Product+Purchase
&el=Product+Information+part+2
&pr1id=PRODUCTCODE176364
&pr1nm=Natural+Feathers
&pr1pr=3.53
&pr1qt=3
&pr2id=PRODUCTCODE137169
&pr2nm=Yellow+Feathers+X+25G
&pr2pr=1.8
&pr2qt=5
&pr3id=PRODUCTCODE326475
&pr3nm=Phunky+Foods+Plate+Health+Mat
&pr3pr=46.99
&pr3qt=1
&pr4id=PRODUCTCODE48808565
&pr4nm=Back2Nature+Leaf+See+N+Store
&pr4pr=139.99
&pr4qt=2
&pa=purchase
&dh=Host
&dp=Page
&dt=Title
// Product data 4
v=1
&tid=UA-XXXXXXX-XX
&cid=3957780
&t=event
&ti=0003170270
&ta=24
&tr=0
&ec=WebFlow
&ea=Product+Purchase
&el=Product+Information+part+3
&pr1id=PRODUCTCODE48789975
&pr1nm=Scooter+And+Tandem+Trike
&pr1pr=329.98
&pr1qt=2
&pa=purchase
&dh=Host
&dp=Page
&dt=Title
// Transaction data
v=1
&tid=UA-XXXXXXX-XX
&cid=3957780
&t=event
&ti=0003170270
&ta=24
&tr=4678.01
&tt=779.67
&ec=WebFlow
&ea=Product+Purchase
&el=Big+Transaction+Basic+Information
&pa=purchase
&dh=Host
&dp=Page
&dt=Title
I've split it in smaller batches, becasuse it would be problematic to every time I want to test something, create request for 150 products.
Problems I am having:
- Transaction is either not visible at all, or disappears after I manage to see it for couple of minutes in GA panel
- Transaction is visible, Revenue is correct, tax as well, but only first batch of proudcts is visible in panel.
I also tried to switch the order of calls - first call with revenue and tax and then products. Similiar issues. I am really struggling with this since couple of days and it's extremely annoying with it's lack of consistence.
Is it happening because I am doing something entirely stupid? Is it even achievable?
Thanks for any advice!!
Example transaction:
It doesn't show any products: