When reversing a Google Analytics e-commerce transaction is the per-unit price positive or negative?

Posted by Michael Glenn on Pro Webmasters See other posts from Pro Webmasters or by Michael Glenn
Published on 2012-05-07T20:33:42Z Indexed on 2012/06/07 22:48 UTC
Read the original article Hit count: 373

Google's own instructions for reversing an e-commerce transaction seem to contradict themselves regarding the unit price.

In the instructions it states

The item field has a positive per-unit price and a negative quantity.

yet, the code sample has a negative per-unit price and negative quantity.

_gaq.push(['_addItem',
       '1234',           // order ID - necessary to associate item with transaction
       'DD44',           // SKU/code - required
       'T-Shirt',        // product name
       'Olive Medium',   // category or variation
       '-11.99',          // unit price - required
       '-1'               // quantity - required
    ]);

Which is correct?

© Pro Webmasters or respective owner

Related posts about google

Related posts about google-analytics