{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2576","repository_url":"https://api.github.com/repos/OpenTreeMap/otm-core","labels_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2576/labels{/name}","comments_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2576/comments","events_url":"https://api.github.com/repos/OpenTreeMap/otm-core/issues/2576/events","html_url":"https://github.com/OpenTreeMap/otm-core/issues/2576","id":153304839,"number":2576,"title":"Improve Google Analytics integration","user":{"login":"maurizi","id":4432106,"avatar_url":"https://avatars.githubusercontent.com/u/4432106?v=3","gravatar_id":"","url":"https://api.github.com/users/maurizi","html_url":"https://github.com/maurizi","followers_url":"https://api.github.com/users/maurizi/followers","following_url":"https://api.github.com/users/maurizi/following{/other_user}","gists_url":"https://api.github.com/users/maurizi/gists{/gist_id}","starred_url":"https://api.github.com/users/maurizi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maurizi/subscriptions","organizations_url":"https://api.github.com/users/maurizi/orgs","repos_url":"https://api.github.com/users/maurizi/repos","events_url":"https://api.github.com/users/maurizi/events{/privacy}","received_events_url":"https://api.github.com/users/maurizi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenTreeMap/otm-core/labels/enhancement","name":"enhancement","color":"1f78b4"}],"state":"closed","locked":false,"assignee":{"login":"maurizi","id":4432106,"avatar_url":"https://avatars.githubusercontent.com/u/4432106?v=3","gravatar_id":"","url":"https://api.github.com/users/maurizi","html_url":"https://github.com/maurizi","followers_url":"https://api.github.com/users/maurizi/followers","following_url":"https://api.github.com/users/maurizi/following{/other_user}","gists_url":"https://api.github.com/users/maurizi/gists{/gist_id}","starred_url":"https://api.github.com/users/maurizi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maurizi/subscriptions","organizations_url":"https://api.github.com/users/maurizi/orgs","repos_url":"https://api.github.com/users/maurizi/repos","events_url":"https://api.github.com/users/maurizi/events{/privacy}","received_events_url":"https://api.github.com/users/maurizi/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-05-05T19:22:04Z","updated_at":"2016-06-08T16:55:59Z","closed_at":"2016-06-08T16:55:59Z","body":"We use Google Tag Manager to include our Google Analytics snippet.  We may need to upgrade to `analytics.js` (see https://developers.google.com/analytics/devguides/collection/upgrade/).\n\nThings to do:\n - Include the user ID in hits if the user is logged in.\n - Created named trackers to differentiate `otm-core` from other websites sharing the same URL (https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#the_create_method).\n   - ~~One tracker that is `Instance`-specific, one that is `Instance` agnostic (removing `url_name` from the URL for page view hits, see https://developers.google.com/analytics/devguides/collection/analyticsjs/pages#modifying_page_urls)~~ After further investigation, I'm not sure it is possible to have 1 tracker per instance\n - Use https://github.com/googleanalytics/autotrack to add event tracking for specific buttons/links"}}
{"actor":{"display_login":"dboyer"}}