matomo-org / matomo-java-tracker

Official Java implementation of the Matomo Tracking HTTP API.
https://matomo-org.github.io/matomo-java-tracker/
BSD 3-Clause "New" or "Revised" License
69 stars 52 forks source link

[BUG] Wrong TrackingParameter name for eventValue field #235

Closed milhomens closed 7 months ago

milhomens commented 7 months ago

Describe the bug Inside MatomoRequest class, eventValue duplicated the param name for eventName, both showing e_n

Code snippets

    @TrackingParameter(
        name = "e_n"
    )
    private String eventName;
    @TrackingParameter(
        name = "e_n"
    )
    private Double eventValue;

Expected behavior eventValue name should be e_v as mentioned in docs:

Optional Event Tracking info

e_c — The event category. Must not be empty. (eg. Videos, Music, Games...)
e_a — The event action. Must not be empty. (eg. Play, Pause, Duration, Add Playlist, Downloaded, Clicked...)
e_n — The event name. (eg. a Movie name, or Song name, or File name...)
e_v — The event value. Must be a float or integer value (numeric), not a string.

Additional context Add any other context about the problem here.

dheid commented 7 months ago

Thanks for reporting! We should fix that soon.