{"action":"closed","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/10667","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/10667/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/10667/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/10667/events","html_url":"https://github.com/ampproject/amphtml/issues/10667","id":246058363,"node_id":"MDU6SXNzdWUyNDYwNTgzNjM=","number":10667,"title":"Amp-Analytics - feature ability to trigger multiple GA Event tags on page load","user":{"login":"grantkemp","id":751115,"node_id":"MDQ6VXNlcjc1MTExNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/751115?v=4","gravatar_id":"","url":"https://api.github.com/users/grantkemp","html_url":"https://github.com/grantkemp","followers_url":"https://api.github.com/users/grantkemp/followers","following_url":"https://api.github.com/users/grantkemp/following{/other_user}","gists_url":"https://api.github.com/users/grantkemp/gists{/gist_id}","starred_url":"https://api.github.com/users/grantkemp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantkemp/subscriptions","organizations_url":"https://api.github.com/users/grantkemp/orgs","repos_url":"https://api.github.com/users/grantkemp/repos","events_url":"https://api.github.com/users/grantkemp/events{/privacy}","received_events_url":"https://api.github.com/users/grantkemp/received_events","type":"User","site_admin":false},"labels":[{"id":284397641,"node_id":"MDU6TGFiZWwyODQzOTc2NDE=","url":"https://api.github.com/repos/ampproject/amphtml/labels/Category:%20Analytics","name":"Category: Analytics","color":"1d76db","default":false},{"id":284529946,"node_id":"MDU6TGFiZWwyODQ1Mjk5NDY=","url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Feature%20Request","name":"Type: Feature Request","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":{"login":"lannka","id":8496897,"node_id":"MDQ6VXNlcjg0OTY4OTc=","avatar_url":"https://avatars3.githubusercontent.com/u/8496897?v=4","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false},"assignees":[{"login":"lannka","id":8496897,"node_id":"MDQ6VXNlcjg0OTY4OTc=","avatar_url":"https://avatars3.githubusercontent.com/u/8496897?v=4","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/23","html_url":"https://github.com/ampproject/amphtml/milestone/23","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/23/labels","id":2293339,"node_id":"MDk6TWlsZXN0b25lMjI5MzMzOQ==","number":23,"title":"New FRs","description":"These are new feature requests opened, that are still at discussion level or need to be verified on whether they can be prioritized or not. ","creator":{"login":"adelinamart","id":24213793,"node_id":"MDQ6VXNlcjI0MjEzNzkz","avatar_url":"https://avatars2.githubusercontent.com/u/24213793?v=4","gravatar_id":"","url":"https://api.github.com/users/adelinamart","html_url":"https://github.com/adelinamart","followers_url":"https://api.github.com/users/adelinamart/followers","following_url":"https://api.github.com/users/adelinamart/following{/other_user}","gists_url":"https://api.github.com/users/adelinamart/gists{/gist_id}","starred_url":"https://api.github.com/users/adelinamart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adelinamart/subscriptions","organizations_url":"https://api.github.com/users/adelinamart/orgs","repos_url":"https://api.github.com/users/adelinamart/repos","events_url":"https://api.github.com/users/adelinamart/events{/privacy}","received_events_url":"https://api.github.com/users/adelinamart/received_events","type":"User","site_admin":false},"open_issues":344,"closed_issues":224,"state":"open","created_at":"2017-02-01T19:32:04Z","updated_at":"2018-06-20T22:45:57Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-07-27T14:27:53Z","updated_at":"2018-06-20T22:45:57Z","closed_at":"2018-06-20T22:45:57Z","author_association":"NONE","body":"## What's the issue?\r\nWe would like to trigger multiple analytics events on page load via GTM\r\n\r\nThis can be done via hardcode but not via GTM\r\n```\r\n<amp-analytics type=\"googleanalytics\">\r\n            <script type=\"application/json\">\r\n                {\r\n                    \"vars\": {\r\n                        \"account\": \"UA-XXXXXX-4\"\r\n                    },\r\n                    \"extraUrlParams\": {\r\n                        \"cd1\": \"name\",\r\n                        \"cd2\": \"colour\",\r\n                        \"pagePath\": \"https://www.example.com\"\r\n                    },\r\n                    \"triggers\": {\r\n                        \"myEvent1\" : {\r\n                            \"on\": \"visible\",\r\n                            \"request\": \"event\",\r\n                            \"vars\": {\r\n                                \"eventCategory\": \"eventTracking\",\r\n                                \"eventAction\": \"eventAction1\"\r\n                            }\r\n                        },\r\n                        \"myEvent2\" : {\r\n                            \"on\": \"visible\",\r\n                            \"request\": \"event\",\r\n                            \"vars\": {\r\n                                \"eventCategory\": \"eventTracking\",\r\n                                \"eventAction\": \"eventAction2\"\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            </script>\r\n        </amp-analytics>\r\n```\r\n\r\nBriefly describe the bug/feature request.\r\nWe currently use GTM to log visits to a page for key brands.  Sometimes there are multiple brands on a particular page and we need to trigger multiple events. \r\nWe wold like to use a custom Variable - which is made up of an array of brands and trigger an event for each brand to enter this into the analytics. \r\n"}}
{"actor":{"display_login":"lannka"}}