I have not enough knowledge for fetch()
, but i think by using this with a query string it must be used with URLSearchParams
to create a URL query string.
See here:
For a solution like your goal see the JS tracking code here: Erfahrungsbericht matomo Tracking Rauschen - #27 by melbao