{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/comments/31217239","id":31217239,"diff_hunk":"@@ -0,0 +1,57 @@\n+{\n+  \"tag\": {\n+\t\"api_key\": \"\", // String - API key - Make sure the request is from a valid client (idea nicked from Keen.io) useful if a page gets copied onto a Russian website and creates noise\n+\t\"version\": \"\", // Version of the tracking client e.g. \"JS v1.2\"\n+\t\"type\": \"page\", // Type of request (page or event)\n+\t\"id\": \"\", // ID of this request, must be unique\n+\t\"offset\": 0 // Delay of this tag between event happening and being sent to server - milliseconds\n+  },\n+\n+  \"page\": {\n+\t\"url\": \"\",\n+\t\"referrer\": \"\",\n+\t\"channel\": \"\", // Our products e.g. ft.com, webapp, flipboard\n+\t\"uuid\": \"\", // UUID of the page, won't always get this\n+\t\"asset_type\": \"section\", // Is this available from an API during enrichment?\n+\t\"page_class_1\": \"\",\n+\t\"page_class_2\": \"\",\n+\t\"sitemap\": \"Sections.Africa\"\n+  },\n+\n+  \"device\": {\n+\t\"user_agent\": \"\", // User agent, usually get this from headers, but are cases where tags are forwarded on and need to explicitly set the user’s agent.\n+\t\"ip\": \"\" // IP address, usually get this from headers, but are cases where tags are forwarded on and need to explicitly set the user’s IP\n+  },\n+\n+  \"user\": {\n+\t\"session_id\": \"\", // User's current logged in session ID, from membership\n+\t\"guid\": \"\", // User ID on ft.com\n+\t\"passport_id\": \"\", // User ID on ft.com - legacy\n+\t\"spoor_id\": \"\" // Our device ID, used to keep track of anon users.","path":"resources/tag_models/page.json","position":30,"original_position":30,"commit_id":"ee3dd409bf978db74608e3fbffc0747397c34285","original_commit_id":"ee3dd409bf978db74608e3fbffc0747397c34285","user":{"login":"AlbertoElias","id":913117,"avatar_url":"https://avatars.githubusercontent.com/u/913117?v=3","gravatar_id":"","url":"https://api.github.com/users/AlbertoElias","html_url":"https://github.com/AlbertoElias","followers_url":"https://api.github.com/users/AlbertoElias/followers","following_url":"https://api.github.com/users/AlbertoElias/following{/other_user}","gists_url":"https://api.github.com/users/AlbertoElias/gists{/gist_id}","starred_url":"https://api.github.com/users/AlbertoElias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlbertoElias/subscriptions","organizations_url":"https://api.github.com/users/AlbertoElias/orgs","repos_url":"https://api.github.com/users/AlbertoElias/repos","events_url":"https://api.github.com/users/AlbertoElias/events{/privacy}","received_events_url":"https://api.github.com/users/AlbertoElias/received_events","type":"User","site_admin":false},"body":"Same as above","created_at":"2015-05-28T09:35:10Z","updated_at":"2015-05-28T09:35:10Z","html_url":"https://github.com/Financial-Times/o-tracking/pull/21#discussion_r31217239","pull_request_url":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/comments/31217239"},"html":{"href":"https://github.com/Financial-Times/o-tracking/pull/21#discussion_r31217239"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/21","id":36385918,"html_url":"https://github.com/Financial-Times/o-tracking/pull/21","diff_url":"https://github.com/Financial-Times/o-tracking/pull/21.diff","patch_url":"https://github.com/Financial-Times/o-tracking/pull/21.patch","issue_url":"https://api.github.com/repos/Financial-Times/o-tracking/issues/21","number":21,"state":"open","locked":false,"title":"Example tag models","user":{"login":"markstephens","id":1125535,"avatar_url":"https://avatars.githubusercontent.com/u/1125535?v=3","gravatar_id":"","url":"https://api.github.com/users/markstephens","html_url":"https://github.com/markstephens","followers_url":"https://api.github.com/users/markstephens/followers","following_url":"https://api.github.com/users/markstephens/following{/other_user}","gists_url":"https://api.github.com/users/markstephens/gists{/gist_id}","starred_url":"https://api.github.com/users/markstephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstephens/subscriptions","organizations_url":"https://api.github.com/users/markstephens/orgs","repos_url":"https://api.github.com/users/markstephens/repos","events_url":"https://api.github.com/users/markstephens/events{/privacy}","received_events_url":"https://api.github.com/users/markstephens/received_events","type":"User","site_admin":false},"body":"Example tag models\r\n- an example of how the json payload will look when the tracking requests are sent through.","created_at":"2015-05-28T09:11:55Z","updated_at":"2015-05-28T09:35:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e77c50ae93b1871f02d420d385bca6a6dffd703e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/o-tracking/issues/21/comments","statuses_url":"https://api.github.com/repos/Financial-Times/o-tracking/statuses/ee3dd409bf978db74608e3fbffc0747397c34285","head":{"label":"Financial-Times:tag_models","ref":"tag_models","sha":"ee3dd409bf978db74608e3fbffc0747397c34285","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":16282233,"name":"o-tracking","full_name":"Financial-Times/o-tracking","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/o-tracking","description":"Analytics module","fork":false,"url":"https://api.github.com/repos/Financial-Times/o-tracking","forks_url":"https://api.github.com/repos/Financial-Times/o-tracking/forks","keys_url":"https://api.github.com/repos/Financial-Times/o-tracking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/o-tracking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/o-tracking/teams","hooks_url":"https://api.github.com/repos/Financial-Times/o-tracking/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/o-tracking/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/o-tracking/events","assignees_url":"https://api.github.com/repos/Financial-Times/o-tracking/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/o-tracking/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/o-tracking/tags","blobs_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/o-tracking/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/o-tracking/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/o-tracking/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/o-tracking/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/o-tracking/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/o-tracking/subscription","commits_url":"https://api.github.com/repos/Financial-Times/o-tracking/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/o-tracking/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/o-tracking/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/o-tracking/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/o-tracking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/o-tracking/merges","archive_url":"https://api.github.com/repos/Financial-Times/o-tracking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/o-tracking/downloads","issues_url":"https://api.github.com/repos/Financial-Times/o-tracking/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/o-tracking/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/o-tracking/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/o-tracking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/o-tracking/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/o-tracking/releases{/id}","created_at":"2014-01-27T15:04:48Z","updated_at":"2014-12-01T14:38:07Z","pushed_at":"2015-05-28T09:11:55Z","git_url":"git://github.com/Financial-Times/o-tracking.git","ssh_url":"git@github.com:Financial-Times/o-tracking.git","clone_url":"https://github.com/Financial-Times/o-tracking.git","svn_url":"https://github.com/Financial-Times/o-tracking","homepage":"http://registry.origami.ft.com/components/o-tracking","size":1843,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":2,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"fbcc5167d2371827b53146a3d9204dd9a3f20e1b","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":16282233,"name":"o-tracking","full_name":"Financial-Times/o-tracking","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/o-tracking","description":"Analytics module","fork":false,"url":"https://api.github.com/repos/Financial-Times/o-tracking","forks_url":"https://api.github.com/repos/Financial-Times/o-tracking/forks","keys_url":"https://api.github.com/repos/Financial-Times/o-tracking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/o-tracking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/o-tracking/teams","hooks_url":"https://api.github.com/repos/Financial-Times/o-tracking/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/o-tracking/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/o-tracking/events","assignees_url":"https://api.github.com/repos/Financial-Times/o-tracking/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/o-tracking/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/o-tracking/tags","blobs_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/o-tracking/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/o-tracking/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/o-tracking/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/o-tracking/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/o-tracking/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/o-tracking/subscription","commits_url":"https://api.github.com/repos/Financial-Times/o-tracking/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/o-tracking/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/o-tracking/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/o-tracking/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/o-tracking/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/o-tracking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/o-tracking/merges","archive_url":"https://api.github.com/repos/Financial-Times/o-tracking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/o-tracking/downloads","issues_url":"https://api.github.com/repos/Financial-Times/o-tracking/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/o-tracking/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/o-tracking/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/o-tracking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/o-tracking/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/o-tracking/releases{/id}","created_at":"2014-01-27T15:04:48Z","updated_at":"2014-12-01T14:38:07Z","pushed_at":"2015-05-28T09:11:55Z","git_url":"git://github.com/Financial-Times/o-tracking.git","ssh_url":"git@github.com:Financial-Times/o-tracking.git","clone_url":"https://github.com/Financial-Times/o-tracking.git","svn_url":"https://github.com/Financial-Times/o-tracking","homepage":"http://registry.origami.ft.com/components/o-tracking","size":1843,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/21"},"html":{"href":"https://github.com/Financial-Times/o-tracking/pull/21"},"issue":{"href":"https://api.github.com/repos/Financial-Times/o-tracking/issues/21"},"comments":{"href":"https://api.github.com/repos/Financial-Times/o-tracking/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/o-tracking/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/o-tracking/statuses/ee3dd409bf978db74608e3fbffc0747397c34285"}}}}