Hi Nick
Thanks for your reply.
I guess I'm confused because even though order total is tracked and
stored in GA as a completely separate and independent value it
actually should be equal to (item cost x item quantity) + shipping +
tax for any specific order.
For example, if my site only had the following transaction:
Item Qty Price
------------------------------------
ProductX 2 $2.00
ProductY 1 $1.00
Shipping: $5.00
Tax: $1.00
Then the tracking functions should look like:
_addTrans(orderId, affiliation, 11.00, 1.00, 5.00, city, state,
country);
_addItem(orderId, sku, ProductX, category, 2.00, 2);
_addItem(orderId, sku, ProductY, category, 1.00, 1);
_trackTrans();
Wouldn't the below API fields then have the following values.
ga:itemRevenue: 5.00
ga:transactionTax: 1.00
ga:transactionShipping: 5.00
ga:transactionRevenue: 11.00
Where transactionRevenue = itemRevenue + transactionShipping +
transactonTax.
So I guess I have a few questions.
1) Is there anything wrong with my above example.
2) If not then what is the cause when transactionRevenue !=
itemRevenue + transactionShipping + transactonTax.
My assumed answers to the above questions where:
1) Nothing wrong with this assumption.
2) If there is a mismatch, it's because incorrect values were supplied
to the tracking functions _addTrans() or addItem(). The problem is
I've seen this in both home grown shopping carts (where an error might
be possible) and off the shelf shopping carts (where an error seems
less likely).
Thanks