SocialGouv / matomo-next

Matomo for Next.js applications
Apache License 2.0
152 stars 21 forks source link

feat(ts): add dimension support #84

Closed rap2hpoutre closed 2 years ago

rap2hpoutre commented 2 years ago

According to the doc, we can add custom dimensions (and we have to provide all params) to the push function. This PR fix Typescript error when we add dimensions (10 supported).

Source: https://developer.matomo.org/guides/tracking-javascript-guide

Capture d’écran 2022-07-11 à 13 58 29
codecov-commenter commented 2 years ago

Codecov Report

Merging #84 (63ab6c7) into master (2c661bd) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #84   +/-   ##
=======================================
  Coverage   85.00%   85.00%           
=======================================
  Files           1        1           
  Lines          60       60           
  Branches       16       16           
=======================================
  Hits           51       51           
  Misses          1        1           
  Partials        8        8           
Impacted Files Coverage Δ
src/index.ts 85.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2c661bd...63ab6c7. Read the comment docs.

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 1.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: