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

Automagically hook in to pushState in tracker script #99

Open
arp242 opened this issue Jan 7, 2020 · 0 comments
Open

Automagically hook in to pushState in tracker script #99

arp242 opened this issue Jan 7, 2020 · 0 comments
Labels
Milestone

Comments

@arp242
Copy link
Collaborator

@arp242 arp242 commented Jan 7, 2020

e.g. plausible does this:

function trackPushState() {
    var his = window.history
    if (his.pushState) {
        var originalFn = his['pushState']
        his.pushState = function() {
            originalFn.apply(this, arguments)
            page();
        }
    }
}

This seems reasonable, but want to be sure this won't cause problems.

@arp242 arp242 added the enhancement label Jan 7, 2020
@arp242 arp242 added this to the Unplanned milestone Jan 7, 2020
@arp242 arp242 modified the milestones: Unplanned, Planned Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.