Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goal tracking documentation needs updates #7966

Closed
dandv opened this issue May 22, 2015 · 2 comments
Closed

Goal tracking documentation needs updates #7966

dandv opened this issue May 22, 2015 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@dandv
Copy link
Contributor

dandv commented May 22, 2015

  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.

  2. 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? If I use goals based on events, is it sufficient to call trackEvent(), or do I need to also call trackGoal()?

  3. The goals doc page reads,

    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

    That should also include event tracking, which is missing from the screenshot.

@dandv dandv changed the title Broken anchor link to tracking goals manually Goal tracking documentation needs updates May 22, 2015
@mattab
Copy link
Member

mattab commented May 25, 2015

Hi @dandv thanks for the reports.

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?

Click on Goals > Manage Goals. The table has a column "Id" which is the Id goal.
They are 1-based.

If I use goals based on events, is it sufficient to call trackEvent(), or do I need to also call trackGoal()?

It's sufficient to call trackEvent which will record a Goal conversion

@mattab
Copy link
Member

mattab commented Jul 15, 2015

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.

Thanks I've fixed the links to JS Tracking guide in 10 user guides and 4 FAQs, to point to the new URL and correct hash tags

@mattab mattab closed this as completed Jul 15, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jul 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants