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

Propagate pushState/replaceState inside worker #172

Merged
merged 9 commits into from May 24, 2022

Conversation

slawekkolodziej
Copy link
Contributor

Hey I was investigating issue with GTM inside next.js app. I noticed that tag manager assigns custom pushState/replaceState to forward history changes on SPA. However, Partytown never forwards those calls to worker.

An issue describing this problem was already reported here: #165

This MR fixes the problem.

@vercel
Copy link

vercel bot commented May 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
partytown ✅ Ready (Inspect) Visit Preview May 6, 2022 at 9:41PM (UTC)

Copy link
Contributor

@quickshiftin quickshiftin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a great addition to the library along with some cleanup.

@miikebar
Copy link

@steve8708 @adamdbradley any progress on this? This is blocking us from using Partytown

@rbordeanu
Copy link

I'm curious about this as well.

@adamdbradley adamdbradley merged commit 5b90408 into BuilderIO:main May 24, 2022
@naveedahmed1
Copy link

@adamdbradley this doesn't seem to work for GA 4 Enhanced Measurement Browser History Events (pop/push state)

@slawekkolodziej slawekkolodziej deleted the push-state branch May 26, 2022 21:03
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

6 participants