Fixes for e-commerce tracking

Two commits, one fixing a missing parameter sent from js side, the other fixes broken iOS side (original authors seems never tested the thing at all!).