angulartics / angulartics2

Vendor-agnostic analytics for Angular2 applications.
MIT License
1.01k stars 192 forks source link

Matomo string value not processed properly #432

Open tdymel opened 3 years ago

tdymel commented 3 years ago

I'm submitting a ...

Angular CLI: 12.2.7
Node: 14.18.0
Package Manager: npm 6.14.15
OS: linux x64

Angular: 12.2.7
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.7
@angular-devkit/build-angular   12.2.7
@angular-devkit/core            12.2.7
@angular-devkit/schematics      12.2.7
@angular/cdk                    12.2.6
@angular/material               12.2.6
@schematics/angular             12.2.7
rxjs                            6.6.7
typescript                      4.3.5
ben33880 commented 2 years ago

same here ...

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; }