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

fixed an error when using pjax with google analytics #59

Merged
merged 1 commit into from
Mar 12, 2016

Conversation

coolhihi
Copy link
Contributor

options.analytics() didn't have any param. so ga("send", "pageview", {"page": options.url, "title": options.title}) got an error Cannot read property 'url' of undefined.

I fixed it by replaced with ga("send", "pageview", {"page": location.pathname, "title": document.title}).

@mikaelengstrom
Copy link

@MoOx, Could you merge this and make a release? I have the same issue.

@MoOx
Copy link
Owner

MoOx commented Mar 12, 2016

Better than nothing. Thanks !

MoOx added a commit that referenced this pull request Mar 12, 2016
Fixed: error when using pjax with google analytics
@MoOx MoOx merged commit 824b229 into MoOx:master Mar 12, 2016
MoOx added a commit that referenced this pull request Mar 12, 2016
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.

3 participants