Piwik PRO uses a container to let you manage tags and consents, and run a tracking code (a JavaScript code) on your web pages. The tracking code collects data about people who visit your site or app. Every time a visitor views a page, the tracking code grabs information about that visitor and sends it to Piwik PRO. Then Piwik PRO organizes this data into reports.
To install a container, follow these steps:
- Go to Menu > Administration.
- Navigate to Sites & apps.
- Click Add a site or app.
- Type the site or app name and address and click Save.
Note: If you want to track a few domains with the same tracking code, add their addresses.
- Set the time zone and currency.
Note: We’ll show data in reports in this time zone. We’ll use this currency for goal revenue.
- Navigate to Installation.
- In Sites, click Install manually.
- In Basic container (async), click Copy to clipboard.
Note: This container holds your tracking code and is used to handle most tags. Always install this container.
- Paste the code right after the opening <body> tag on every page of your website or app.
- Data will appear in reports in about an hour. Data in the tracker debugger will appear instantly.
Tip: You can also check manually to see if your tracking works. Read more
- We’ll start showing a consent form on your site after you’ve installed the container. Add your privacy policy address to the form or turn off the consent form.
- (Optional) (Deprecated) In Additional container (sync), click Copy to clipboard.
Note: Add this container if you want to use sync tags. It loads tags before the page content loads. But always install the Basic container (async), otherwise the additional one won’t work.
Note: Synchronous containers and tags will be discontinued by January, 2025. We recommend removing them and adjusting your setups accordingly. Read more
- (Optional) Paste the code inside <head></head> tags on your website or app. Don’t add this code elsewhere because it may slow down your site and affect tracking.
- (Optional) You can start adding sync tags right away.
Tip: To change the way your data is collected, you can use the following settings:
Other ways to install
For sites
- Angular: install a container (with a tracking code)
- Google Tag Manager: install a container (with a tracking code)
- Google Tag Manager: install a tracking code on its own
- Instapage: install a container (with a tracking code)
- Next.js: install a container (with a tracking code)
- No Piwik PRO Tag Manager: install a tracking code
- React: install a container (with a tracking code)
- Squarespace: install a container (with a tracking code)
- Wix: install a container (with a tracking code)
- WordPress: install a container (with a tracking code)
For mobile apps