{"action":"created","comment":{"url":"https://api.github.com/repos/googleanalytics/autotrack/pulls/comments/53232682","id":53232682,"diff_hunk":"@@ -325,6 +365,39 @@ A function used to format the `eventLabel` of media query change events. For exa\n \n The debounce timeout, i.e., the amount of time to wait before sending the change hit. If multiple change events occur within the timeout period, only the last one is sent.\n \n+### `shouldTrackOutboundForm`\n+\n+**Type**: `Function`\n+\n+**Default**:\n+\n+```js\n+function(form) {\n+  var action = form.getAttribute('action');\n+  return action.indexOf('http') === 0 && action.indexOf(location.hostname) < 0;\n+};\n+```\n+\n+A function used to determine if a form submit should be tracked as an \"Outbound Form\".\n+\n+The function is invoked with the `<form>` element as its only argument, and, if it returns truthy, the form submit will be tracked.\n+\n+### `shouldTrackOutboundLink`\n+\n+**Type**: `Function`\n+\n+**Default**:\n+\n+```js\n+function(link) {\n+  return link.hostname != location.hostname;\n+};\n+```\n+\n+A function used to determine if a link click should be tracked as an \"Outbound Link\".\n+\n+The function is invoked with the `<a>` element as its only argument, and, if it returns truthy, the link click will be tracked.","path":"README.md","position":86,"original_position":86,"commit_id":"c1d865e48b0685254210271d8d543c74de936d62","original_commit_id":"c1d865e48b0685254210271d8d543c74de936d62","user":{"login":"pfrisella","id":835734,"avatar_url":"https://avatars.githubusercontent.com/u/835734?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrisella","html_url":"https://github.com/pfrisella","followers_url":"https://api.github.com/users/pfrisella/followers","following_url":"https://api.github.com/users/pfrisella/following{/other_user}","gists_url":"https://api.github.com/users/pfrisella/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrisella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrisella/subscriptions","organizations_url":"https://api.github.com/users/pfrisella/orgs","repos_url":"https://api.github.com/users/pfrisella/repos","events_url":"https://api.github.com/users/pfrisella/events{/privacy}","received_events_url":"https://api.github.com/users/pfrisella/received_events","type":"User","site_admin":false},"body":"s/and, if/and if","created_at":"2016-02-17T21:17:46Z","updated_at":"2016-02-17T21:17:46Z","html_url":"https://github.com/googleanalytics/autotrack/pull/3#discussion_r53232682","pull_request_url":"https://api.github.com/repos/googleanalytics/autotrack/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/googleanalytics/autotrack/pulls/comments/53232682"},"html":{"href":"https://github.com/googleanalytics/autotrack/pull/3#discussion_r53232682"},"pull_request":{"href":"https://api.github.com/repos/googleanalytics/autotrack/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/googleanalytics/autotrack/pulls/3","id":59695364,"html_url":"https://github.com/googleanalytics/autotrack/pull/3","diff_url":"https://github.com/googleanalytics/autotrack/pull/3.diff","patch_url":"https://github.com/googleanalytics/autotrack/pull/3.patch","issue_url":"https://api.github.com/repos/googleanalytics/autotrack/issues/3","number":3,"state":"open","locked":false,"title":"Make outbound link/form logic configurable","user":{"login":"philipwalton","id":326742,"avatar_url":"https://avatars.githubusercontent.com/u/326742?v=3","gravatar_id":"","url":"https://api.github.com/users/philipwalton","html_url":"https://github.com/philipwalton","followers_url":"https://api.github.com/users/philipwalton/followers","following_url":"https://api.github.com/users/philipwalton/following{/other_user}","gists_url":"https://api.github.com/users/philipwalton/gists{/gist_id}","starred_url":"https://api.github.com/users/philipwalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipwalton/subscriptions","organizations_url":"https://api.github.com/users/philipwalton/orgs","repos_url":"https://api.github.com/users/philipwalton/repos","events_url":"https://api.github.com/users/philipwalton/events{/privacy}","received_events_url":"https://api.github.com/users/philipwalton/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-17T19:28:27Z","updated_at":"2016-02-17T21:17:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3366d1b9ba5c5a6fa0c7adbe90f93710d7cba3a","assignee":{"login":"pfrisella","id":835734,"avatar_url":"https://avatars.githubusercontent.com/u/835734?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrisella","html_url":"https://github.com/pfrisella","followers_url":"https://api.github.com/users/pfrisella/followers","following_url":"https://api.github.com/users/pfrisella/following{/other_user}","gists_url":"https://api.github.com/users/pfrisella/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrisella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrisella/subscriptions","organizations_url":"https://api.github.com/users/pfrisella/orgs","repos_url":"https://api.github.com/users/pfrisella/repos","events_url":"https://api.github.com/users/pfrisella/events{/privacy}","received_events_url":"https://api.github.com/users/pfrisella/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/googleanalytics/autotrack/pulls/3/commits","review_comments_url":"https://api.github.com/repos/googleanalytics/autotrack/pulls/3/comments","review_comment_url":"https://api.github.com/repos/googleanalytics/autotrack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleanalytics/autotrack/issues/3/comments","statuses_url":"https://api.github.com/repos/googleanalytics/autotrack/statuses/c1d865e48b0685254210271d8d543c74de936d62","head":{"label":"googleanalytics:outbound-opts","ref":"outbound-opts","sha":"c1d865e48b0685254210271d8d543c74de936d62","user":{"login":"googleanalytics","id":4327788,"avatar_url":"https://avatars.githubusercontent.com/u/4327788?v=3","gravatar_id":"","url":"https://api.github.com/users/googleanalytics","html_url":"https://github.com/googleanalytics","followers_url":"https://api.github.com/users/googleanalytics/followers","following_url":"https://api.github.com/users/googleanalytics/following{/other_user}","gists_url":"https://api.github.com/users/googleanalytics/gists{/gist_id}","starred_url":"https://api.github.com/users/googleanalytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleanalytics/subscriptions","organizations_url":"https://api.github.com/users/googleanalytics/orgs","repos_url":"https://api.github.com/users/googleanalytics/repos","events_url":"https://api.github.com/users/googleanalytics/events{/privacy}","received_events_url":"https://api.github.com/users/googleanalytics/received_events","type":"Organization","site_admin":false},"repo":{"id":45273502,"name":"autotrack","full_name":"googleanalytics/autotrack","owner":{"login":"googleanalytics","id":4327788,"avatar_url":"https://avatars.githubusercontent.com/u/4327788?v=3","gravatar_id":"","url":"https://api.github.com/users/googleanalytics","html_url":"https://github.com/googleanalytics","followers_url":"https://api.github.com/users/googleanalytics/followers","following_url":"https://api.github.com/users/googleanalytics/following{/other_user}","gists_url":"https://api.github.com/users/googleanalytics/gists{/gist_id}","starred_url":"https://api.github.com/users/googleanalytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleanalytics/subscriptions","organizations_url":"https://api.github.com/users/googleanalytics/orgs","repos_url":"https://api.github.com/users/googleanalytics/repos","events_url":"https://api.github.com/users/googleanalytics/events{/privacy}","received_events_url":"https://api.github.com/users/googleanalytics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/googleanalytics/autotrack","description":"Automatic + enhanced analytics.js tracking for common user interactions","fork":false,"url":"https://api.github.com/repos/googleanalytics/autotrack","forks_url":"https://api.github.com/repos/googleanalytics/autotrack/forks","keys_url":"https://api.github.com/repos/googleanalytics/autotrack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleanalytics/autotrack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleanalytics/autotrack/teams","hooks_url":"https://api.github.com/repos/googleanalytics/autotrack/hooks","issue_events_url":"https://api.github.com/repos/googleanalytics/autotrack/issues/events{/number}","events_url":"https://api.github.com/repos/googleanalytics/autotrack/events","assignees_url":"https://api.github.com/repos/googleanalytics/autotrack/assignees{/user}","branches_url":"https://api.github.com/repos/googleanalytics/autotrack/branches{/branch}","tags_url":"https://api.github.com/repos/googleanalytics/autotrack/tags","blobs_url":"https://api.github.com/repos/googleanalytics/autotrack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleanalytics/autotrack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleanalytics/autotrack/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleanalytics/autotrack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleanalytics/autotrack/statuses/{sha}","languages_url":"https://api.github.com/repos/googleanalytics/autotrack/languages","stargazers_url":"https://api.github.com/repos/googleanalytics/autotrack/stargazers","contributors_url":"https://api.github.com/repos/googleanalytics/autotrack/contributors","subscribers_url":"https://api.github.com/repos/googleanalytics/autotrack/subscribers","subscription_url":"https://api.github.com/repos/googleanalytics/autotrack/subscription","commits_url":"https://api.github.com/repos/googleanalytics/autotrack/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleanalytics/autotrack/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleanalytics/autotrack/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleanalytics/autotrack/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleanalytics/autotrack/contents/{+path}","compare_url":"https://api.github.com/repos/googleanalytics/autotrack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleanalytics/autotrack/merges","archive_url":"https://api.github.com/repos/googleanalytics/autotrack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleanalytics/autotrack/downloads","issues_url":"https://api.github.com/repos/googleanalytics/autotrack/issues{/number}","pulls_url":"https://api.github.com/repos/googleanalytics/autotrack/pulls{/number}","milestones_url":"https://api.github.com/repos/googleanalytics/autotrack/milestones{/number}","notifications_url":"https://api.github.com/repos/googleanalytics/autotrack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleanalytics/autotrack/labels{/name}","releases_url":"https://api.github.com/repos/googleanalytics/autotrack/releases{/id}","deployments_url":"https://api.github.com/repos/googleanalytics/autotrack/deployments","created_at":"2015-10-30T19:54:39Z","updated_at":"2016-02-12T20:26:34Z","pushed_at":"2016-02-17T19:28:27Z","git_url":"git://github.com/googleanalytics/autotrack.git","ssh_url":"git@github.com:googleanalytics/autotrack.git","clone_url":"https://github.com/googleanalytics/autotrack.git","svn_url":"https://github.com/googleanalytics/autotrack","homepage":"","size":190,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":13,"default_branch":"master"}},"base":{"label":"googleanalytics:master","ref":"master","sha":"958ebeb7d394c4d3384a7bc8de8af0083a765ac0","user":{"login":"googleanalytics","id":4327788,"avatar_url":"https://avatars.githubusercontent.com/u/4327788?v=3","gravatar_id":"","url":"https://api.github.com/users/googleanalytics","html_url":"https://github.com/googleanalytics","followers_url":"https://api.github.com/users/googleanalytics/followers","following_url":"https://api.github.com/users/googleanalytics/following{/other_user}","gists_url":"https://api.github.com/users/googleanalytics/gists{/gist_id}","starred_url":"https://api.github.com/users/googleanalytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleanalytics/subscriptions","organizations_url":"https://api.github.com/users/googleanalytics/orgs","repos_url":"https://api.github.com/users/googleanalytics/repos","events_url":"https://api.github.com/users/googleanalytics/events{/privacy}","received_events_url":"https://api.github.com/users/googleanalytics/received_events","type":"Organization","site_admin":false},"repo":{"id":45273502,"name":"autotrack","full_name":"googleanalytics/autotrack","owner":{"login":"googleanalytics","id":4327788,"avatar_url":"https://avatars.githubusercontent.com/u/4327788?v=3","gravatar_id":"","url":"https://api.github.com/users/googleanalytics","html_url":"https://github.com/googleanalytics","followers_url":"https://api.github.com/users/googleanalytics/followers","following_url":"https://api.github.com/users/googleanalytics/following{/other_user}","gists_url":"https://api.github.com/users/googleanalytics/gists{/gist_id}","starred_url":"https://api.github.com/users/googleanalytics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleanalytics/subscriptions","organizations_url":"https://api.github.com/users/googleanalytics/orgs","repos_url":"https://api.github.com/users/googleanalytics/repos","events_url":"https://api.github.com/users/googleanalytics/events{/privacy}","received_events_url":"https://api.github.com/users/googleanalytics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/googleanalytics/autotrack","description":"Automatic + enhanced analytics.js tracking for common user interactions","fork":false,"url":"https://api.github.com/repos/googleanalytics/autotrack","forks_url":"https://api.github.com/repos/googleanalytics/autotrack/forks","keys_url":"https://api.github.com/repos/googleanalytics/autotrack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleanalytics/autotrack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleanalytics/autotrack/teams","hooks_url":"https://api.github.com/repos/googleanalytics/autotrack/hooks","issue_events_url":"https://api.github.com/repos/googleanalytics/autotrack/issues/events{/number}","events_url":"https://api.github.com/repos/googleanalytics/autotrack/events","assignees_url":"https://api.github.com/repos/googleanalytics/autotrack/assignees{/user}","branches_url":"https://api.github.com/repos/googleanalytics/autotrack/branches{/branch}","tags_url":"https://api.github.com/repos/googleanalytics/autotrack/tags","blobs_url":"https://api.github.com/repos/googleanalytics/autotrack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleanalytics/autotrack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleanalytics/autotrack/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleanalytics/autotrack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleanalytics/autotrack/statuses/{sha}","languages_url":"https://api.github.com/repos/googleanalytics/autotrack/languages","stargazers_url":"https://api.github.com/repos/googleanalytics/autotrack/stargazers","contributors_url":"https://api.github.com/repos/googleanalytics/autotrack/contributors","subscribers_url":"https://api.github.com/repos/googleanalytics/autotrack/subscribers","subscription_url":"https://api.github.com/repos/googleanalytics/autotrack/subscription","commits_url":"https://api.github.com/repos/googleanalytics/autotrack/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleanalytics/autotrack/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleanalytics/autotrack/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleanalytics/autotrack/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleanalytics/autotrack/contents/{+path}","compare_url":"https://api.github.com/repos/googleanalytics/autotrack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleanalytics/autotrack/merges","archive_url":"https://api.github.com/repos/googleanalytics/autotrack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleanalytics/autotrack/downloads","issues_url":"https://api.github.com/repos/googleanalytics/autotrack/issues{/number}","pulls_url":"https://api.github.com/repos/googleanalytics/autotrack/pulls{/number}","milestones_url":"https://api.github.com/repos/googleanalytics/autotrack/milestones{/number}","notifications_url":"https://api.github.com/repos/googleanalytics/autotrack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleanalytics/autotrack/labels{/name}","releases_url":"https://api.github.com/repos/googleanalytics/autotrack/releases{/id}","deployments_url":"https://api.github.com/repos/googleanalytics/autotrack/deployments","created_at":"2015-10-30T19:54:39Z","updated_at":"2016-02-12T20:26:34Z","pushed_at":"2016-02-17T19:28:27Z","git_url":"git://github.com/googleanalytics/autotrack.git","ssh_url":"git@github.com:googleanalytics/autotrack.git","clone_url":"https://github.com/googleanalytics/autotrack.git","svn_url":"https://github.com/googleanalytics/autotrack","homepage":"","size":190,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleanalytics/autotrack/pulls/3"},"html":{"href":"https://github.com/googleanalytics/autotrack/pull/3"},"issue":{"href":"https://api.github.com/repos/googleanalytics/autotrack/issues/3"},"comments":{"href":"https://api.github.com/repos/googleanalytics/autotrack/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/googleanalytics/autotrack/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/googleanalytics/autotrack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleanalytics/autotrack/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/googleanalytics/autotrack/statuses/c1d865e48b0685254210271d8d543c74de936d62"}}}}