{"action":"created","issue":{"url":"https://api.github.com/repos/angulartics/angulartics2/issues/11","repository_url":"https://api.github.com/repos/angulartics/angulartics2","labels_url":"https://api.github.com/repos/angulartics/angulartics2/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/angulartics/angulartics2/issues/11/comments","events_url":"https://api.github.com/repos/angulartics/angulartics2/issues/11/events","html_url":"https://github.com/angulartics/angulartics2/issues/11","id":143955688,"number":11,"title":"_gaq not defined","user":{"login":"fergusg","id":760983,"avatar_url":"https://avatars.githubusercontent.com/u/760983?v=3","gravatar_id":"","url":"https://api.github.com/users/fergusg","html_url":"https://github.com/fergusg","followers_url":"https://api.github.com/users/fergusg/followers","following_url":"https://api.github.com/users/fergusg/following{/other_user}","gists_url":"https://api.github.com/users/fergusg/gists{/gist_id}","starred_url":"https://api.github.com/users/fergusg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fergusg/subscriptions","organizations_url":"https://api.github.com/users/fergusg/orgs","repos_url":"https://api.github.com/users/fergusg/repos","events_url":"https://api.github.com/users/fergusg/events{/privacy}","received_events_url":"https://api.github.com/users/fergusg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-28T11:34:17Z","updated_at":"2016-06-20T14:24:22Z","closed_at":null,"body":"Get an `Uncaught ReferenceError: _gaq is not defined`. (I'm using the new `analytics.js` code so I wouldn't expect it to be.)\r\n\r\nThe culprit is  at line 30 of the compiled code\r\n\r\n```javascript\r\n Angulartics2GoogleAnalytics.prototype.pageTrack = function (path) {\r\n if (_gaq) {\r\n   _gaq.push(['_trackPageview', path]);\r\n  ...\r\n```\r\n\r\nEasy fix was to define `var _gaq;` in my `index.html`  though something like \r\n\r\n```javascript\r\n   var _gaq = window._gaq || null;\r\n   var ga = window.ga || null;\r\n```\r\n\r\nin the source might be better."},"comment":{"url":"https://api.github.com/repos/angulartics/angulartics2/issues/comments/227157212","html_url":"https://github.com/angulartics/angulartics2/issues/11#issuecomment-227157212","issue_url":"https://api.github.com/repos/angulartics/angulartics2/issues/11","id":227157212,"user":{"login":"briananderson1222","id":4603907,"avatar_url":"https://avatars.githubusercontent.com/u/4603907?v=3","gravatar_id":"","url":"https://api.github.com/users/briananderson1222","html_url":"https://github.com/briananderson1222","followers_url":"https://api.github.com/users/briananderson1222/followers","following_url":"https://api.github.com/users/briananderson1222/following{/other_user}","gists_url":"https://api.github.com/users/briananderson1222/gists{/gist_id}","starred_url":"https://api.github.com/users/briananderson1222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briananderson1222/subscriptions","organizations_url":"https://api.github.com/users/briananderson1222/orgs","repos_url":"https://api.github.com/users/briananderson1222/repos","events_url":"https://api.github.com/users/briananderson1222/events{/privacy}","received_events_url":"https://api.github.com/users/briananderson1222/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T14:24:22Z","updated_at":"2016-06-20T14:24:22Z","body":"@justme1 All that second link says is that ga.js is deprecated. Doesn't say anything about the gaq global object.. The workaround above worked for me in the meantime.."}}
{"actor":{"display_login":"briananderson1222"}}