brotkrueml / typo3-matomo-integration

Matomo integration for TYPO3
https://extensions.typo3.org/extension/matomo_integration
GNU General Public License v2.0
4 stars 4 forks source link

Float values not allowed for `addMatomoMethodCall` #30

Closed simonschaufi closed 3 months ago

simonschaufi commented 3 months ago

Current behavior

Float values not allowed for addMatomoMethodCall. See https://matomo.org/faq/reports/advanced-manually-tracking-ecommerce-actions-in-matomo/#example-of-tracking-the-ecommerce-order

Expected behavior/output

Allow float values

Steps to reproduce

$event->addMatomoMethodCall(
            'trackEcommerceOrder',
            "000123", // (Required) orderId
            10.99, // (Required) grandTotal (revenue)
            9.99, // (Optional) subTotal
            1.5, // (optional) tax
            1, // (optional) shipping
            false // (optional) discount
        );

Environment

Possible Solution

Allow float values

brotkrueml commented 3 months ago

@simonschaufi Thanks for the report. Floats are now possible with the 2.1.1 release.