{"action":"created","issue":{"url":"https://api.github.com/repos/railslove/rack-tracker/issues/26","labels_url":"https://api.github.com/repos/railslove/rack-tracker/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/railslove/rack-tracker/issues/26/comments","events_url":"https://api.github.com/repos/railslove/rack-tracker/issues/26/events","html_url":"https://github.com/railslove/rack-tracker/pull/26","id":57767507,"number":26,"title":"send proper url with turbolinks enabled","user":{"login":"musaffa","id":294616,"avatar_url":"https://avatars.githubusercontent.com/u/294616?v=3","gravatar_id":"","url":"https://api.github.com/users/musaffa","html_url":"https://github.com/musaffa","followers_url":"https://api.github.com/users/musaffa/followers","following_url":"https://api.github.com/users/musaffa/following{/other_user}","gists_url":"https://api.github.com/users/musaffa/gists{/gist_id}","starred_url":"https://api.github.com/users/musaffa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/musaffa/subscriptions","organizations_url":"https://api.github.com/users/musaffa/orgs","repos_url":"https://api.github.com/users/musaffa/repos","events_url":"https://api.github.com/users/musaffa/events{/privacy}","received_events_url":"https://api.github.com/users/musaffa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-16T05:51:15Z","updated_at":"2015-06-09T21:10:10Z","closed_at":"2015-06-09T21:10:10Z","pull_request":{"url":"https://api.github.com/repos/railslove/rack-tracker/pulls/26","html_url":"https://github.com/railslove/rack-tracker/pull/26","diff_url":"https://github.com/railslove/rack-tracker/pull/26.diff","patch_url":"https://github.com/railslove/rack-tracker/pull/26.patch"},"body":"Simple `ga('send', 'pageview')` cannot account for `turbolinks` page changes, it always sends the same url that was loaded during the full page load. This modification will allow sending the proper url on turbolinks page changes. Full page reload also calls `page:change` event so it will work for that too. It falls back to the default implementation if `turbonlinks` is not enabled or supported.\r\n\r\nNote: It uses jquery `on` event instead of `addEventListener` to avoid cross browser issues. As rails developers use `jquery-turbolinks` gem, i think it wont be an issue."},"comment":{"url":"https://api.github.com/repos/railslove/rack-tracker/issues/comments/110505324","html_url":"https://github.com/railslove/rack-tracker/pull/26#issuecomment-110505324","issue_url":"https://api.github.com/repos/railslove/rack-tracker/issues/26","id":110505324,"user":{"login":"kangguru","id":72447,"avatar_url":"https://avatars.githubusercontent.com/u/72447?v=3","gravatar_id":"","url":"https://api.github.com/users/kangguru","html_url":"https://github.com/kangguru","followers_url":"https://api.github.com/users/kangguru/followers","following_url":"https://api.github.com/users/kangguru/following{/other_user}","gists_url":"https://api.github.com/users/kangguru/gists{/gist_id}","starred_url":"https://api.github.com/users/kangguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kangguru/subscriptions","organizations_url":"https://api.github.com/users/kangguru/orgs","repos_url":"https://api.github.com/users/kangguru/repos","events_url":"https://api.github.com/users/kangguru/events{/privacy}","received_events_url":"https://api.github.com/users/kangguru/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T21:10:10Z","updated_at":"2015-06-09T21:10:10Z","body":"closed in favor of #40 "}}