{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/7966","labels_url":"https://api.github.com/repos/piwik/piwik/issues/7966/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/7966/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/7966/events","html_url":"https://github.com/piwik/piwik/issues/7966","id":79274456,"number":7966,"title":"Goal tracking documentation needs updates","user":{"login":"dandv","id":33569,"avatar_url":"https://avatars.githubusercontent.com/u/33569?v=3","gravatar_id":"","url":"https://api.github.com/users/dandv","html_url":"https://github.com/dandv","followers_url":"https://api.github.com/users/dandv/followers","following_url":"https://api.github.com/users/dandv/following{/other_user}","gists_url":"https://api.github.com/users/dandv/gists{/gist_id}","starred_url":"https://api.github.com/users/dandv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandv/subscriptions","organizations_url":"https://api.github.com/users/dandv/orgs","repos_url":"https://api.github.com/users/dandv/repos","events_url":"https://api.github.com/users/dandv/events{/privacy}","received_events_url":"https://api.github.com/users/dandv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-22T04:10:45Z","updated_at":"2015-05-25T22:20:06Z","closed_at":null,"body":"1. Broken link - http://piwik.org/docs/tracking-goals-web-analytics/ links at the end to http://developer.piwik.org/api-reference/tracking-javascript#manually-trigger-a-conversion-for-a-goal but the anchor doesn't exist on that page.\r\n\r\n2. What is the type of the first parameter to trackGoal? Apparently it's a numeric ID (are they simply consecutive numbers, 0-based or 1-based?), but how do those IDs map onto the [goals created in the UI](http://piwik.org/docs/tracking-goals-web-analytics/#create-a-goal)? If I use goals based on events, is it sufficient to call `trackEvent()`, or do I need to also call `trackGoal()`?\r\n\r\n3. The [goals doc page](http://piwik.org/docs/tracking-goals-web-analytics/) reads,\r\n> These define how the Goal can be converted: matching a URL, downloads a specific file, clicks on an external link,  or Goal manually triggered using the trackGoal() JavaScript function for specific user actions\r\n\r\n  That should also include event tracking, which is missing from the screenshot."},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/105325998","html_url":"https://github.com/piwik/piwik/issues/7966#issuecomment-105325998","issue_url":"https://api.github.com/repos/piwik/piwik/issues/7966","id":105325998,"user":{"login":"mattab","id":466765,"avatar_url":"https://avatars.githubusercontent.com/u/466765?v=3","gravatar_id":"","url":"https://api.github.com/users/mattab","html_url":"https://github.com/mattab","followers_url":"https://api.github.com/users/mattab/followers","following_url":"https://api.github.com/users/mattab/following{/other_user}","gists_url":"https://api.github.com/users/mattab/gists{/gist_id}","starred_url":"https://api.github.com/users/mattab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattab/subscriptions","organizations_url":"https://api.github.com/users/mattab/orgs","repos_url":"https://api.github.com/users/mattab/repos","events_url":"https://api.github.com/users/mattab/events{/privacy}","received_events_url":"https://api.github.com/users/mattab/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T22:20:06Z","updated_at":"2015-05-25T22:20:06Z","body":"Hi @dandv thanks for the reports.\r\n\r\n> Apparently it's a numeric ID (are they simply consecutive numbers, 0-based or 1-based?), but how do those IDs map onto the goals created in the UI? \r\n\r\nClick on Goals > Manage Goals. The table has a column \"Id\" which is the Id goal.\r\nThey are 1-based.\r\n\r\n> If I use goals based on events, is it sufficient to call trackEvent(), or do I need to also call trackGoal()?\r\n\r\nIt's sufficient to call `trackEvent` which will record a Goal conversion"}}