Google Tag Manager: install a container (with a tracking code)

Installation for: Analytics, Tag Manager, Audience Manager, Consent Manager

If you’re using Google Tag Manager on your website, you can quickly install the Piwik PRO container. This will let you use all our modules — Analytics, Tag Manager, Audience Manager, Consent Manager.

First, you’ll need to add a site or app to Piwik PRO. Next, add our code as a custom HTML tag in Google Tag Manager. In this article, we’ll show you how to do it.

Add a site or app in Piwik PRO

To add a site or app in Piwik PRO, 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 Sites, click Install manually.
  8. Copy the code from Basic container code.
    Basic container (async) in Piwik PRO

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

  9. Save the copied code in a text editor. You’ll need it in Google Tag Manager.

Install a container using Google Tag Manager

Needed permissions: Edit or higher for your container in Google Tag Manager

To install the Piwik PRO container with Google Tag Manager, follow these steps:

  1. In Google Tag Manager, choose the container for your site or app.
  2. Go to Tags.
  3. Click New to add a new tag.
  4. Name your tag. Example: Piwik PRO container.
  5. Click Choose a tag type to begin setup…
    Add a tag in Google Tag Manager
  6. Search for Custom HTML and click on it.
    Custom HTML tag in Google Tag Manager
  7. Paste the Piwik PRO’s container code you’ve copied earlier.
    Piwik PRO's container code in Google Tag Manager
  8. In Triggering, click Choose a trigger to make this tag fire…
  9. Choose All pages.
    Trigger in Google Tag Manager
  10. Click Save.
  11. Click Submit, and then click Publish to push changes to your site or app.
  12. Done! 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

  13. 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.

Enterprise plan  Note: If you choose to install Piwik PRO using a tag manager other than ours, we won’t be able to provide technical support for such a setup. Our aim is to deliver you the best possible service, but we can’t do that for third-party tools.

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