{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/11290","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/11290/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/11290/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/11290/events","html_url":"https://github.com/ampproject/amphtml/issues/11290","id":257469572,"node_id":"MDU6SXNzdWUyNTc0Njk1NzI=","number":11290,"title":"I2I: Timer analytics enhancement for starting and stopping","user":{"login":"pomeroyr","id":31904167,"node_id":"MDQ6VXNlcjMxOTA0MTY3","avatar_url":"https://avatars1.githubusercontent.com/u/31904167?v=4","gravatar_id":"","url":"https://api.github.com/users/pomeroyr","html_url":"https://github.com/pomeroyr","followers_url":"https://api.github.com/users/pomeroyr/followers","following_url":"https://api.github.com/users/pomeroyr/following{/other_user}","gists_url":"https://api.github.com/users/pomeroyr/gists{/gist_id}","starred_url":"https://api.github.com/users/pomeroyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pomeroyr/subscriptions","organizations_url":"https://api.github.com/users/pomeroyr/orgs","repos_url":"https://api.github.com/users/pomeroyr/repos","events_url":"https://api.github.com/users/pomeroyr/events{/privacy}","received_events_url":"https://api.github.com/users/pomeroyr/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":530202281,"node_id":"MDU6TGFiZWw1MzAyMDIyODE=","url":"https://api.github.com/repos/ampproject/amphtml/labels/P2:%20Soon","name":"P2: Soon","color":"e99695","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":"open","locked":false,"assignee":{"login":"pomeroyr","id":31904167,"node_id":"MDQ6VXNlcjMxOTA0MTY3","avatar_url":"https://avatars1.githubusercontent.com/u/31904167?v=4","gravatar_id":"","url":"https://api.github.com/users/pomeroyr","html_url":"https://github.com/pomeroyr","followers_url":"https://api.github.com/users/pomeroyr/followers","following_url":"https://api.github.com/users/pomeroyr/following{/other_user}","gists_url":"https://api.github.com/users/pomeroyr/gists{/gist_id}","starred_url":"https://api.github.com/users/pomeroyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pomeroyr/subscriptions","organizations_url":"https://api.github.com/users/pomeroyr/orgs","repos_url":"https://api.github.com/users/pomeroyr/repos","events_url":"https://api.github.com/users/pomeroyr/events{/privacy}","received_events_url":"https://api.github.com/users/pomeroyr/received_events","type":"User","site_admin":false},"assignees":[{"login":"pomeroyr","id":31904167,"node_id":"MDQ6VXNlcjMxOTA0MTY3","avatar_url":"https://avatars1.githubusercontent.com/u/31904167?v=4","gravatar_id":"","url":"https://api.github.com/users/pomeroyr","html_url":"https://github.com/pomeroyr","followers_url":"https://api.github.com/users/pomeroyr/followers","following_url":"https://api.github.com/users/pomeroyr/following{/other_user}","gists_url":"https://api.github.com/users/pomeroyr/gists{/gist_id}","starred_url":"https://api.github.com/users/pomeroyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pomeroyr/subscriptions","organizations_url":"https://api.github.com/users/pomeroyr/orgs","repos_url":"https://api.github.com/users/pomeroyr/repos","events_url":"https://api.github.com/users/pomeroyr/events{/privacy}","received_events_url":"https://api.github.com/users/pomeroyr/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":348,"closed_issues":208,"state":"open","created_at":"2017-02-01T19:32:04Z","updated_at":"2018-06-05T10:59:21Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-09-13T18:03:31Z","updated_at":"2018-06-05T12:29:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Sample config to time a user interacting with a video:\r\n\r\n<pre>\r\nrequest: {\r\n  baseUrl: 'https://mypingurl.com?met=1;\r\n  timerRequest: '${baseUrl}&timer=${timerDuration};&timestamp=${timestamp};',\r\n  counterRequest: '${baseUrl}&counter=COUNTER(${event-id});&timer=${timerStart};'\r\n},\r\ntrigger: {\r\n  video-play-timer: {\r\n    on: timer,\r\n    timerSpec: {\r\n      startSpec: {\r\n        on: amp-video-play,\r\n        selector: amp-video,\r\n        request: [timerRequest, counterRequest]\r\n        vars: {\r\n          event-id: 'myVideoEvent',\r\n        }\r\n      },\r\n      stopSpec: {\r\n        on: amp-video-stop,\r\n        selector: amp-video,\r\n        request: timerStopRequest,\r\n        vars: {\r\n          event-id: 'myVideoEvent'\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n</pre>\r\n\r\nThis adds the ability to start and stop a timer event based on arbitrary triggers. Stopping and starting a timer may occur on different or multiple events and/or components.\r\n\r\nEach timer also contains variables which hold state and can be used in URL variable substitution:\r\n\r\n<b>timerStart:</b> Resolves to the start time of the timer on the client's clock.\r\n<b>timerDuration:</b> Resolves to the time the timer has been on. Resets on timer stop.\r\n\r\nThis would resolve to pings of the following form assuming a timer interval of 5s:\r\n<pre>\r\nhttps://mypingurl.com?timer=0 // video begin\r\nhttps://mypingurl.com?counter=1&timer=timestamp // The one counter to mark timer begin.\r\nhttps://mypingurl.com?timer=5 // video still playing\r\nhttps://mypingurl.com?timer=7 // video stops\r\n</pre>\r\n\r\nNotes: COUNTER references a function proposed in #11193 ."},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/394690778","html_url":"https://github.com/ampproject/amphtml/issues/11290#issuecomment-394690778","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/11290","id":394690778,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDY5MDc3OA==","user":{"login":"ampprojectbot","id":23269078,"node_id":"MDQ6VXNlcjIzMjY5MDc4","avatar_url":"https://avatars3.githubusercontent.com/u/23269078?v=4","gravatar_id":"","url":"https://api.github.com/users/ampprojectbot","html_url":"https://github.com/ampprojectbot","followers_url":"https://api.github.com/users/ampprojectbot/followers","following_url":"https://api.github.com/users/ampprojectbot/following{/other_user}","gists_url":"https://api.github.com/users/ampprojectbot/gists{/gist_id}","starred_url":"https://api.github.com/users/ampprojectbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampprojectbot/subscriptions","organizations_url":"https://api.github.com/users/ampprojectbot/orgs","repos_url":"https://api.github.com/users/ampprojectbot/repos","events_url":"https://api.github.com/users/ampprojectbot/events{/privacy}","received_events_url":"https://api.github.com/users/ampprojectbot/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T12:29:27Z","updated_at":"2018-06-05T12:29:27Z","author_association":"COLLABORATOR","body":"This issue hasn't been  updated in awhile. @pomeroyr Do you have any updates?"}}
{"actor":{"display_login":"ampprojectbot"}}