{"action":"opened","issue":{"url":"https://api.github.com/repos/poteto/ember-metrics/issues/75","repository_url":"https://api.github.com/repos/poteto/ember-metrics","labels_url":"https://api.github.com/repos/poteto/ember-metrics/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/poteto/ember-metrics/issues/75/comments","events_url":"https://api.github.com/repos/poteto/ember-metrics/issues/75/events","html_url":"https://github.com/poteto/ember-metrics/issues/75","id":142633476,"number":75,"title":"alias / identify function formats","user":{"login":"introvert","id":66253,"avatar_url":"https://avatars.githubusercontent.com/u/66253?v=3","gravatar_id":"","url":"https://api.github.com/users/introvert","html_url":"https://github.com/introvert","followers_url":"https://api.github.com/users/introvert/followers","following_url":"https://api.github.com/users/introvert/following{/other_user}","gists_url":"https://api.github.com/users/introvert/gists{/gist_id}","starred_url":"https://api.github.com/users/introvert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/introvert/subscriptions","organizations_url":"https://api.github.com/users/introvert/orgs","repos_url":"https://api.github.com/users/introvert/repos","events_url":"https://api.github.com/users/introvert/events{/privacy}","received_events_url":"https://api.github.com/users/introvert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-22T12:20:44Z","updated_at":"2016-03-22T12:20:44Z","closed_at":null,"body":"Hello,\r\n\r\nI'm wondering why is the function call designed, so that I have to call `identify` and `alias` and `trackEvent` in such a non-pretty form, when those function will always take 1 parameter (distinctId as a string)?\r\n\r\nIt would be much nicer to do:\r\n`Ember.get(this, 'metrics').alias(distinct_id); // distinct_id must always be there`\r\n\r\ninstead of\r\n`Ember.get(this, 'metrics').alias({ distinctId: distinct_id});`\r\n\r\nIf there's a chance that a hash of options can be passed to a function, it should be the second argument.\r\n\r\nThe same goes with `identify` and `trackEvent` (which always takes at least event name).\r\n\r\n\r\n"}}