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

Tracking a page view with a custom title sets the title for future page views as well #1332

Closed matus-tomlein closed 4 months ago

matus-tomlein commented 4 months ago

Describe the bug This bug was introduced in this commit that tried to fix the issue that the custom page title was not considered when tracking page views. However, the result of the change is that when one tracks a page view with a custom title, and another page view without title, the second page view will get the title of the first page view.

To Reproduce Track two page views after each other, the first one with a title, the second without.

Expected behavior The second page view should not get the title of the first page view.