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.
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.