Issue: I'm getting the error.
Unable to determine the domain name -- TypeError [ERR_INVALID_DOMAIN_NAME]: Unable to determine the domain name\n at new ClientRequest (_http_client.js:71:13)\n at request (http.js:42:10)\n at Object.get (http.js:46:13)\n at MatomoTracker.track (/.../node_modules/matomo-tracker/index.js:72:24)\n at MatomoLinkService.track (/.../matomo-link.service.js:23:21)\n at new MatomoLinkService (/.../matomo-link.service.js:20:14)\n at Injector.instantiateClass (/.../node_modules/@nestjs/core/injector/injector.js:289:19)\n at callback (/.../node_modules/@nestjs/core/injector/injector.js:76:41)\n at process._tickCallback (internal/process/next_tick.js:68:7)\n at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)"}
Issue: I'm getting the error.
Unable to determine the domain name -- TypeError [ERR_INVALID_DOMAIN_NAME]: Unable to determine the domain name\n at new ClientRequest (_http_client.js:71:13)\n at request (http.js:42:10)\n at Object.get (http.js:46:13)\n at MatomoTracker.track (/.../node_modules/matomo-tracker/index.js:72:24)\n at MatomoLinkService.track (/.../matomo-link.service.js:23:21)\n at new MatomoLinkService (/.../matomo-link.service.js:20:14)\n at Injector.instantiateClass (/.../node_modules/@nestjs/core/injector/injector.js:289:19)\n at callback (/.../node_modules/@nestjs/core/injector/injector.js:76:41)\n at process._tickCallback (internal/process/next_tick.js:68:7)\n at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)"}
Expect: I send track event to matomo dashboard
My code:
Console.log info: