{"action":"closed","issue":{"url":"https://api.github.com/repos/percolatestudio/meteor-segment.io/issues/17","labels_url":"https://api.github.com/repos/percolatestudio/meteor-segment.io/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/percolatestudio/meteor-segment.io/issues/17/comments","events_url":"https://api.github.com/repos/percolatestudio/meteor-segment.io/issues/17/events","html_url":"https://github.com/percolatestudio/meteor-segment.io/issues/17","id":59355587,"number":17,"title":"Not accessible on server","user":{"login":"themeteorchef","id":8183166,"avatar_url":"https://avatars.githubusercontent.com/u/8183166?v=3","gravatar_id":"","url":"https://api.github.com/users/themeteorchef","html_url":"https://github.com/themeteorchef","followers_url":"https://api.github.com/users/themeteorchef/followers","following_url":"https://api.github.com/users/themeteorchef/following{/other_user}","gists_url":"https://api.github.com/users/themeteorchef/gists{/gist_id}","starred_url":"https://api.github.com/users/themeteorchef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themeteorchef/subscriptions","organizations_url":"https://api.github.com/users/themeteorchef/orgs","repos_url":"https://api.github.com/users/themeteorchef/repos","events_url":"https://api.github.com/users/themeteorchef/events{/privacy}","received_events_url":"https://api.github.com/users/themeteorchef/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T19:57:24Z","updated_at":"2015-03-21T17:42:53Z","closed_at":"2015-03-21T17:42:53Z","body":"It looks like this was supposed to be fixed in #4 but the error still persists.\r\n\r\nIf I attempt to define `analytics.load(myKey)` anywhere in the `/server` directory, I get the following:\r\n\r\n![error](http://cl.ly/image/202M143j0P3f/Image%202015-02-28%20at%201.48.28%20PM.png)\r\n\r\nTried a few experiments to no avail:\r\n- Move code out of `Meteor.startup()` and into its own file.\r\n- Attempt to make file calling `analytics.load()` load last.\r\n- Wrap call to `analytics.load()` in a `setTimeout()`.\r\n\r\nDoesn't appear to be relevant, but there seems to be a typo [here](https://github.com/percolatestudio/meteor-segment.io/blob/master/server.js#L4). Seems like `writeKet` should be `writeKey`.\r\n\r\nLet me know if you need any more information :)"}}