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

setDocumentTitle does not override the title for trackPageView event #1317

Closed marcin-j closed 5 months ago

marcin-j commented 5 months ago

Describe the bug setDocumentTitle does not override the title for trackPageView event

To Reproduce

  1. Create tracker
  2. Override page title with some custom titlesetDocumentTitle("foo bar");
  3. Track page view trackPageView();

Expected behavior Page view event should be sent with "foo bar" title, but instead, it's sent with regular document.title.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):