{"action":"created","issue":{"url":"https://api.github.com/repos/revolunet/angular-google-analytics/issues/88","labels_url":"https://api.github.com/repos/revolunet/angular-google-analytics/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/revolunet/angular-google-analytics/issues/88/comments","events_url":"https://api.github.com/repos/revolunet/angular-google-analytics/issues/88/events","html_url":"https://github.com/revolunet/angular-google-analytics/pull/88","id":102592378,"number":88,"title":"Encapsulated multiple tracker handling","user":{"login":"justinsa","id":1533050,"avatar_url":"https://avatars.githubusercontent.com/u/1533050?v=3","gravatar_id":"","url":"https://api.github.com/users/justinsa","html_url":"https://github.com/justinsa","followers_url":"https://api.github.com/users/justinsa/followers","following_url":"https://api.github.com/users/justinsa/following{/other_user}","gists_url":"https://api.github.com/users/justinsa/gists{/gist_id}","starred_url":"https://api.github.com/users/justinsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinsa/subscriptions","organizations_url":"https://api.github.com/users/justinsa/orgs","repos_url":"https://api.github.com/users/justinsa/repos","events_url":"https://api.github.com/users/justinsa/events{/privacy}","received_events_url":"https://api.github.com/users/justinsa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"revolunet","id":124937,"avatar_url":"https://avatars.githubusercontent.com/u/124937?v=3","gravatar_id":"","url":"https://api.github.com/users/revolunet","html_url":"https://github.com/revolunet","followers_url":"https://api.github.com/users/revolunet/followers","following_url":"https://api.github.com/users/revolunet/following{/other_user}","gists_url":"https://api.github.com/users/revolunet/gists{/gist_id}","starred_url":"https://api.github.com/users/revolunet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revolunet/subscriptions","organizations_url":"https://api.github.com/users/revolunet/orgs","repos_url":"https://api.github.com/users/revolunet/repos","events_url":"https://api.github.com/users/revolunet/events{/privacy}","received_events_url":"https://api.github.com/users/revolunet/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-23T05:59:55Z","updated_at":"2015-08-25T16:23:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/revolunet/angular-google-analytics/pulls/88","html_url":"https://github.com/revolunet/angular-google-analytics/pull/88","diff_url":"https://github.com/revolunet/angular-google-analytics/pull/88.diff","patch_url":"https://github.com/revolunet/angular-google-analytics/pull/88.patch"},"body":"* The previous design for supporting single or multiple trackers forced copy-paste coding and special cased the scenario of a single tracker versus multiple trackers. This change makes account handling generic and encapsulates the logic for how multiple trackers are called to a single location with backwards compatibility preserved. GA commands that support multiple trackers will be trivial to add support for now, but will require additional tests in order to onboard properly.\r\n\r\n* Standardized the generation of the create script tag for Analytics.js to make generation consistent without special casing on whether there were one or many trackers defined.\r\n\r\n* The setAccount configuration method now supports a more complete set of formats. Those are: 1) no argument / undefined / false will unset the accounts previously defined, 2) an array of tracker objects, 3) a single tracker object, and 4) a single tracker identifier. This preserves backwards compatibility."},"comment":{"url":"https://api.github.com/repos/revolunet/angular-google-analytics/issues/comments/134658353","html_url":"https://github.com/revolunet/angular-google-analytics/pull/88#issuecomment-134658353","issue_url":"https://api.github.com/repos/revolunet/angular-google-analytics/issues/88","id":134658353,"user":{"login":"Karpo72","id":13433648,"avatar_url":"https://avatars.githubusercontent.com/u/13433648?v=3","gravatar_id":"","url":"https://api.github.com/users/Karpo72","html_url":"https://github.com/Karpo72","followers_url":"https://api.github.com/users/Karpo72/followers","following_url":"https://api.github.com/users/Karpo72/following{/other_user}","gists_url":"https://api.github.com/users/Karpo72/gists{/gist_id}","starred_url":"https://api.github.com/users/Karpo72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karpo72/subscriptions","organizations_url":"https://api.github.com/users/Karpo72/orgs","repos_url":"https://api.github.com/users/Karpo72/repos","events_url":"https://api.github.com/users/Karpo72/events{/privacy}","received_events_url":"https://api.github.com/users/Karpo72/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T16:23:12Z","updated_at":"2015-08-25T16:23:12Z","body":"When is the next version update planed?"}}