You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
question about the decisions made in the repository
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Im using the the Angulartics2Matomo service to call eventtrack("customAction", { category: "customCategory", value: "someValue" }). This will send an trackEvent to Matomo but the value will be 0. Number values work fine. It looks like there is a conversion problem somewhere, however, the plugin looked fine.
What is the expected behavior?
It should send the value as string value.
in matomo.ts :
// PAQ requires that eventValue be an integer, see: http://matomo.org/docs/event-tracking
if ((properties as TrackEventMatomoProperties).value) {
const parsed = parseInt((properties as TrackEventMatomoProperties).value as any, 10);
(properties as TrackEventMatomoProperties).value = isNaN(parsed) ? 0 : parsed;
}
I'm submitting a ...
bug report
feature request
question about the decisions made in the repository
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Im using the the
Angulartics2Matomo
service to calleventtrack("customAction", { category: "customCategory", value: "someValue" })
. This will send an trackEvent to Matomo but the value will be0
. Number values work fine. It looks like there is a conversion problem somewhere, however, the plugin looked fine.What is the expected behavior?
It should send the value as string value.
Environment:
The text was updated successfully, but these errors were encountered: