Install a container (with a tracking code)

Administration

Needed permissions: owner

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:

  1. Go to Menu > Administration.
  2. Navigate to Sites & apps.
  3. Click Add a site or app.
  4. Type the site or app name and address, and click Save.
    Site or app address (Administration)

    Note: If you want to track a few domains with the same tracking code, add their addresses.

  5. Set the time zone and currency.
    Time zone and currency (administration)

    Note: We’ll show data in reports in this time zone. We’ll use this currency for goal revenue.

  6. Navigate to Installation.
  7. In Basic container (async), click Copy to clipboard.
    Basic container (async) in Piwik PRO

    Note: This container holds your tracking code and is used to handle most tags.

  8. Paste the code right after the opening <body> tag on every page of your website or app.
  9. Data will appear in reports in about an hour. Data in the tracker debugger will appear instantly.

    Tip: You can also check manually if the tracking works. Read more

  10. We’ll start showing a consent form on your site after installing the container. Add your privacy policy address to the form or turn off the consent form.
  11. Optionally, in Additional container (sync), click Copy to clipboard.
    Additional container (sync) in Piwik PRO

    Note: Add this container if you want to use sync tags. It loads tags before the page content loads.

  12. 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 tracking won’t work correctly.
  13. You can start adding sync tags right away.

Tip: To change how your data is collected, you can use the following settings:

Was this article helpful?

Technical support

If you still have some questions, visit our community.
There’s always someone ready to help!

Back to help center