{"action":"created","comment":{"url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/comments/85936724","pull_request_review_id":6621005,"id":85936724,"diff_hunk":"@@ -221,5 +231,79 @@\n   }\n   </script>\n   </amp-analytics>\n+  <!-- #### AMP Carousel Tracking-->\n+  <!--\n+ It is possible to track [amp-carousel](https://www.ampproject.org/docs/reference/components/amp-carousel) events with amp-analytics (this works only for  `type=\"slides\"`). Here is a sample carousel:\n+  -->\n+  <amp-carousel width=\"400\" height=\"300\" layout=\"responsive\" type=\"slides\">\n+    <div class=\"slide\" data-slide-id=\"slide1\">Slide 1</div>\n+    <div class=\"slide\" data-slide-id=\"slide2\">Slide 2</div>\n+    <div class=\"slide\">Slide 3</div>\n+  </amp-carousel>\n+\n+  <!--\n+You can use the `fromSlide` and `toSlide` [variables](https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/analytics-vars.md) for tracking which slides are viewed. The value is either taken from the `data-slide-id` attribute of the slide when present, else it represents the index of the slide (starting from 0).\n+  -->\n+  <!--\n+The `amp-carousel-change` event is issued when there is any change in the slide that is curently visible:","path":"src/20_Components/amp-analytics.html","position":49,"original_position":49,"commit_id":"3d4b68d846a20c15c7fe6a838afdcc46334a9cce","original_commit_id":"3d4b68d846a20c15c7fe6a838afdcc46334a9cce","user":{"login":"sebastianbenz","id":380472,"avatar_url":"https://avatars.githubusercontent.com/u/380472?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbenz","html_url":"https://github.com/sebastianbenz","followers_url":"https://api.github.com/users/sebastianbenz/followers","following_url":"https://api.github.com/users/sebastianbenz/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbenz/subscriptions","organizations_url":"https://api.github.com/users/sebastianbenz/orgs","repos_url":"https://api.github.com/users/sebastianbenz/repos","events_url":"https://api.github.com/users/sebastianbenz/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbenz/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-11-01T14:18:42Z","updated_at":"2016-11-01T14:18:42Z","html_url":"https://github.com/ampproject/amp-by-example/pull/461#discussion_r85936724","pull_request_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/461","_links":{"self":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/comments/85936724"},"html":{"href":"https://github.com/ampproject/amp-by-example/pull/461#discussion_r85936724"},"pull_request":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/461"}}},"pull_request":{"url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/461","id":91687635,"html_url":"https://github.com/ampproject/amp-by-example/pull/461","diff_url":"https://github.com/ampproject/amp-by-example/pull/461.diff","patch_url":"https://github.com/ampproject/amp-by-example/pull/461.patch","issue_url":"https://api.github.com/repos/ampproject/amp-by-example/issues/461","number":461,"state":"open","locked":false,"title":"Add sample for amp-carousel tracking","user":{"login":"sebastianbenz","id":380472,"avatar_url":"https://avatars.githubusercontent.com/u/380472?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbenz","html_url":"https://github.com/sebastianbenz","followers_url":"https://api.github.com/users/sebastianbenz/followers","following_url":"https://api.github.com/users/sebastianbenz/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbenz/subscriptions","organizations_url":"https://api.github.com/users/sebastianbenz/orgs","repos_url":"https://api.github.com/users/sebastianbenz/repos","events_url":"https://api.github.com/users/sebastianbenz/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbenz/received_events","type":"User","site_admin":false},"body":"@kul3r4 PTAL\r\n@rudygalfi @avimehta @eike-hass FYI","created_at":"2016-10-31T20:48:30Z","updated_at":"2016-11-01T14:18:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d14fdb4ce235bb6ffab6d4790e6ac70d1b35f8ae","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/461/commits","review_comments_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/461/comments","review_comment_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ampproject/amp-by-example/issues/461/comments","statuses_url":"https://api.github.com/repos/ampproject/amp-by-example/statuses/3d4b68d846a20c15c7fe6a838afdcc46334a9cce","head":{"label":"sebastianbenz:carousel-analytics","ref":"carousel-analytics","sha":"3d4b68d846a20c15c7fe6a838afdcc46334a9cce","user":{"login":"sebastianbenz","id":380472,"avatar_url":"https://avatars.githubusercontent.com/u/380472?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbenz","html_url":"https://github.com/sebastianbenz","followers_url":"https://api.github.com/users/sebastianbenz/followers","following_url":"https://api.github.com/users/sebastianbenz/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbenz/subscriptions","organizations_url":"https://api.github.com/users/sebastianbenz/orgs","repos_url":"https://api.github.com/users/sebastianbenz/repos","events_url":"https://api.github.com/users/sebastianbenz/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbenz/received_events","type":"User","site_admin":false},"repo":{"id":52166192,"name":"amp-by-example","full_name":"sebastianbenz/amp-by-example","owner":{"login":"sebastianbenz","id":380472,"avatar_url":"https://avatars.githubusercontent.com/u/380472?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianbenz","html_url":"https://github.com/sebastianbenz","followers_url":"https://api.github.com/users/sebastianbenz/followers","following_url":"https://api.github.com/users/sebastianbenz/following{/other_user}","gists_url":"https://api.github.com/users/sebastianbenz/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianbenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianbenz/subscriptions","organizations_url":"https://api.github.com/users/sebastianbenz/orgs","repos_url":"https://api.github.com/users/sebastianbenz/repos","events_url":"https://api.github.com/users/sebastianbenz/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianbenz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sebastianbenz/amp-by-example","description":"Accelerated Mobile Pages in Action","fork":true,"url":"https://api.github.com/repos/sebastianbenz/amp-by-example","forks_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/forks","keys_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/teams","hooks_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/hooks","issue_events_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/issues/events{/number}","events_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/events","assignees_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/assignees{/user}","branches_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/branches{/branch}","tags_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/tags","blobs_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/statuses/{sha}","languages_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/languages","stargazers_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/stargazers","contributors_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/contributors","subscribers_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/subscribers","subscription_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/subscription","commits_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/contents/{+path}","compare_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/merges","archive_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/downloads","issues_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/issues{/number}","pulls_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/pulls{/number}","milestones_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/milestones{/number}","notifications_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/labels{/name}","releases_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/releases{/id}","deployments_url":"https://api.github.com/repos/sebastianbenz/amp-by-example/deployments","created_at":"2016-02-20T17:37:41Z","updated_at":"2016-08-26T15:09:02Z","pushed_at":"2016-10-31T20:50:49Z","git_url":"git://github.com/sebastianbenz/amp-by-example.git","ssh_url":"git@github.com:sebastianbenz/amp-by-example.git","clone_url":"https://github.com/sebastianbenz/amp-by-example.git","svn_url":"https://github.com/sebastianbenz/amp-by-example","homepage":"http://amp-by-example.appspot.com/","size":104131,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"ampproject:master","ref":"master","sha":"460694e41489a1c5b30b2713244b61ed28ef0462","user":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"repo":{"id":51327024,"name":"amp-by-example","full_name":"ampproject/amp-by-example","owner":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ampproject/amp-by-example","description":"A hands-on introduction to Accelerated Mobile Pages (AMP) focusing on code and live samples.","fork":false,"url":"https://api.github.com/repos/ampproject/amp-by-example","forks_url":"https://api.github.com/repos/ampproject/amp-by-example/forks","keys_url":"https://api.github.com/repos/ampproject/amp-by-example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ampproject/amp-by-example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ampproject/amp-by-example/teams","hooks_url":"https://api.github.com/repos/ampproject/amp-by-example/hooks","issue_events_url":"https://api.github.com/repos/ampproject/amp-by-example/issues/events{/number}","events_url":"https://api.github.com/repos/ampproject/amp-by-example/events","assignees_url":"https://api.github.com/repos/ampproject/amp-by-example/assignees{/user}","branches_url":"https://api.github.com/repos/ampproject/amp-by-example/branches{/branch}","tags_url":"https://api.github.com/repos/ampproject/amp-by-example/tags","blobs_url":"https://api.github.com/repos/ampproject/amp-by-example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ampproject/amp-by-example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ampproject/amp-by-example/git/refs{/sha}","trees_url":"https://api.github.com/repos/ampproject/amp-by-example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ampproject/amp-by-example/statuses/{sha}","languages_url":"https://api.github.com/repos/ampproject/amp-by-example/languages","stargazers_url":"https://api.github.com/repos/ampproject/amp-by-example/stargazers","contributors_url":"https://api.github.com/repos/ampproject/amp-by-example/contributors","subscribers_url":"https://api.github.com/repos/ampproject/amp-by-example/subscribers","subscription_url":"https://api.github.com/repos/ampproject/amp-by-example/subscription","commits_url":"https://api.github.com/repos/ampproject/amp-by-example/commits{/sha}","git_commits_url":"https://api.github.com/repos/ampproject/amp-by-example/git/commits{/sha}","comments_url":"https://api.github.com/repos/ampproject/amp-by-example/comments{/number}","issue_comment_url":"https://api.github.com/repos/ampproject/amp-by-example/issues/comments{/number}","contents_url":"https://api.github.com/repos/ampproject/amp-by-example/contents/{+path}","compare_url":"https://api.github.com/repos/ampproject/amp-by-example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ampproject/amp-by-example/merges","archive_url":"https://api.github.com/repos/ampproject/amp-by-example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ampproject/amp-by-example/downloads","issues_url":"https://api.github.com/repos/ampproject/amp-by-example/issues{/number}","pulls_url":"https://api.github.com/repos/ampproject/amp-by-example/pulls{/number}","milestones_url":"https://api.github.com/repos/ampproject/amp-by-example/milestones{/number}","notifications_url":"https://api.github.com/repos/ampproject/amp-by-example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ampproject/amp-by-example/labels{/name}","releases_url":"https://api.github.com/repos/ampproject/amp-by-example/releases{/id}","deployments_url":"https://api.github.com/repos/ampproject/amp-by-example/deployments","created_at":"2016-02-08T21:05:29Z","updated_at":"2016-10-31T20:34:58Z","pushed_at":"2016-11-01T11:24:40Z","git_url":"git://github.com/ampproject/amp-by-example.git","ssh_url":"git@github.com:ampproject/amp-by-example.git","clone_url":"https://github.com/ampproject/amp-by-example.git","svn_url":"https://github.com/ampproject/amp-by-example","homepage":"http://ampbyexample.com/","size":104024,"stargazers_count":221,"watchers_count":221,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":116,"mirror_url":null,"open_issues_count":87,"forks":116,"open_issues":87,"watchers":221,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/461"},"html":{"href":"https://github.com/ampproject/amp-by-example/pull/461"},"issue":{"href":"https://api.github.com/repos/ampproject/amp-by-example/issues/461"},"comments":{"href":"https://api.github.com/repos/ampproject/amp-by-example/issues/461/comments"},"review_comments":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/461/comments"},"review_comment":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ampproject/amp-by-example/pulls/461/commits"},"statuses":{"href":"https://api.github.com/repos/ampproject/amp-by-example/statuses/3d4b68d846a20c15c7fe6a838afdcc46334a9cce"}}}}
{"actor":{"display_login":"sebastianbenz"}}