Guide Working with goals in Piwik Pro
To get started with goal tracking using goals in Piwik PRO, you need to do a few things. The following steps are required:
1. You use Sitevision web analytics
To double-check that you are doing this, go to Website Settings -> Integration -> Web Analytics and make sure that the box "Use Piwik PRO to collect statistics from this website" is checked. Also, make sure that you have registered cookies on the website by clicking the "Register cookies" button.
2. Create an API key in Piwik PRO
You need to create an API key in Piwik PRO to connect Piwik PRO with Sitevision.
This connection allows you to use the goals you have created in Piwik PRO directly in Sitevision's modules and also display goal tracking in a dashboard.
Create an API key by following these instructions: https://developers.piwik.pro/reference/authentication External link, opens in new window.
3. Go to Piwik PRO RESTApi
Now you need to add the API key you created in step 2 to the Piwik PRO - RESTApi add-on. Go to the cube menu -> Add-ons -> Piwik PRO - RESTApi and click on the name under versions. Then click on Settings to add the information from step 2.

Add the Client ID and Client Secret you received when you created the API key in Piwik PRO.

4. Set goals in Piwik PRO:
Here you can create goals in Piwik PRO. For example, you can create conversion goals (when a user clicks a button or fills out a form), engagement goals (when a user visits a certain number of pages), or navigation goals (when a user clicks on the menu or visits an important landing page).
- Log in to Piwik Pro Analytics External link, opens in new window..
- Click on the main menu Goals → Create a folder (bottom left corner).
- Create some goals (there is a plus icon when you hover over the folder you created).
- Enter goal names
- Select Track goal manually
- Open Advanced Settings → Check the box Allow multiple goals per session (you will be able to control this in Sitevision)

- Click on the main menu Settings → then click on Tracker debugger → 30 min should be selected (This view should be open when you test the target module and button module)
5. Ensure that you are using the cookie module on the website
It is mandatory to have a cookie module on the website. Go to the home page and/or template to check that you are using one on the website. Select to accept all cookies.
6. Test retrieving your goals
Now you can trigger your goals that you have set in Piwik PRO on the website using the following modules:
- Button module
- Form modules (On the Analysis tab in any of the forms Questionnaire/Email form/Survey/Web registration)
- Piwik PRO module - Goal tracking
Example of the button module
For example, if you want to track how many visitors clicked on a button, set ‘Use goal tracking’ in the button module:

Example of a Question form
For example, if you want to track how many visitors filled out a form, set ‘Use goal tracking’ in the question form:

Example Piwik PRO Goal Tracking
For example, if you want to measure how many users reach a specific page. In that case, place the module on the relevant page and the goal will be registered when the page is displayed. You can also track how well your goals are being met with the Piwik PRO Goal Overview widget.
Currently, we retrieve all targets set on that website, meaning that not only a specific folder with targets can be retrieved, but all targets in all folders.
The page published:
help.sitevision.se always refers to the latest version of Sitevision
Print page