Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant