Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Conversation

@philipwalton
Copy link
Member

analytics.js defaults to using the value of document.title when no title field is set on the tracker.

Since different SPA frameworks handle the setting of the title in different ways (e.g. before calling pushState, after calling pushState, etc.) it's simpler to rely on the analytics.js default behavior rather than trying to set it ourselves.

Also, relying on the default behaviors gives the page a bit more time to set the title that it would if we set it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant