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

feature: auto pageview event for every route #25

Open
Obiwarn opened this issue Feb 2, 2016 · 1 comment
Open

feature: auto pageview event for every route #25

Obiwarn opened this issue Feb 2, 2016 · 1 comment

Comments

@Obiwarn
Copy link

Obiwarn commented Feb 2, 2016

No description provided.

@LeNiglo
Copy link
Contributor

LeNiglo commented Mar 23, 2016

Hi,

You could simply use this, it will apply pageview() to every route registered !

Router.configure({
    onBeforeAction: function() {
        GAnalytics.pageview();
        this.next();
    }
});

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

No branches or pull requests

2 participants