Converts Universal Analytics Enhanced Ecommerce products/impressions/promotions dataLayers to the format required by GA4's items array.
- Refactored code to be more error-resilient.
- You can now type custom parameter names for the custom dimensions and metrics instead of using the index numbers.
- Fix item quantity to not send NaN if source is not a number.
- Fixed item_categoryN to not have the second underscore.
- Convert quantity to integer to prevent breakage.
- Prevent error if no ecommerce object found.
- Added table for mapping custom dimensions and metrics.
- Initial release.