File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
common/changes/@snowplow/browser-tracker-core
libraries/browser-tracker-core/src/tracker Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "changes" : [
3+ {
4+ "packageName" : " @snowplow/browser-tracker-core" ,
5+ "comment" : " Fix custom document title override using setDocumentTitle (#1317)" ,
6+ "type" : " none"
7+ }
8+ ],
9+ "packageName" : " @snowplow/browser-tracker-core"
10+ }
Original file line number Diff line number Diff line change @@ -987,7 +987,7 @@ export function Tracker(
987987
988988 // So we know what document.title was at the time of trackPageView
989989 lastDocumentTitle = document . title ;
990- lastConfigTitle = title ;
990+ lastConfigTitle = title ?? lastConfigTitle ;
991991
992992 // Fixup page title
993993 const pageTitle = fixupTitle ( lastConfigTitle || lastDocumentTitle ) ;
You can’t perform that action at this time.
0 commit comments