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

Remove the handling of titles from urlChangeTracker #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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