snowplow / snowplow-javascript-tracker

Snowplow event tracker for client-side and server-side JavaScript. Add analytics to your websites, web apps and servers.
http://snowplowanalytics.com
BSD 3-Clause "New" or "Revised" License
555 stars 222 forks source link

Version 4.0.1: custom collector POST path (postPath) is not applied #1376

Closed davidher-mann closed 2 weeks ago

davidher-mann commented 2 weeks ago

Describe the bug custom collector POST path (postPath) is not applied, although it is set in the tracker Initialization

To Reproduce

  1. Initialize a tracker with a custom postPath
  2. check the collector POST path of event requests, the default /tp2 path remains

Expected behavior If a postPath is set in the tracker Initialization, the collector POST path needs to change accordingly

Additional context Brave and ad blockers are blocking the /tp2, therefore we had to roll back todays tracker version v4 deployment.

j7i commented 2 weeks ago

The postPath from the tracker configuration is not being passed to the event emitter and therefore always results in its default.

Hints

matus-tomlein commented 2 weeks ago

Thanks for reporting this @davidher-mann and @j7i and sorry about this bug going unnoticed! We will aim for a speedy patch release.

j7i commented 2 weeks ago

Thanks for the speedy fix. We'll give it another try then.