# How to install Piwik Pro Tag Manager?

**URL:** <https://community.piwik.pro/t/how-to-install-piwik-pro-tag-manager/4528>\
**Category:** Data collection and tags\
**Created:** [October 11, 2024, 10:27pm UTC](https://community.piwik.pro/t/how-to-install-piwik-pro-tag-manager/4528 "2024-10-11T22:27:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcubic](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/jcubic/32/3805_2.png) [@jcubic](https://community.piwik.pro/u/jcubic)\
**Post date:** [October 11, 2024, 10:27pm UTC](https://community.piwik.pro/t/how-to-install-piwik-pro-tag-manager/4528/1 "2024-10-11T22:27:34Z")

</div>

I’m not able to find anywhere if I need to install anything after adding Tag Manager on my website. Or Piwik Pro code snippet is enough.

The tag I’ve created have some unclear data like:

- JavaScript library address
- Tracker address

without any information what they are for.

---

<div class="post-metadata">

**Author:** ![Adam](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/adam/32/1494_2.png) [@Adam](https://community.piwik.pro/u/Adam)\
**Post date:** [October 14, 2024, 8:09am UTC](https://community.piwik.pro/t/how-to-install-piwik-pro-tag-manager/4528/2 "2024-10-14T08:09:19Z")

</div>

Hi @jcubic,

As soon as you install our tracking container all of our modules are then loaded and can be used. One tracking script covers everything in our toolkit

---

<div class="post-metadata">

**Author:** ![jcubic](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/jcubic/32/3805_2.png) [@jcubic](https://community.piwik.pro/u/jcubic)\
**Post date:** [October 14, 2024, 3:35pm UTC](https://community.piwik.pro/t/how-to-install-piwik-pro-tag-manager/4528/3 "2024-10-14T15:35:17Z")

</div>

Ok and How I’m supped to use this code without Tag manager code:

```javascript
_paq.push(['trackEvent', 'REPL', 'command', command]);

```

This is part of Tag managar code, I was lucky to find the code snippet. But I don’t see anywhere on the tag manager in Piwik pro dashboard. Why this information is hidden from users?

---

<div class="post-metadata">

**Author:** ![Adam](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/adam/32/1494_2.png) [@Adam](https://community.piwik.pro/u/Adam)\
**Post date:** [October 15, 2024, 10:36am UTC](https://community.piwik.pro/t/how-to-install-piwik-pro-tag-manager/4528/4 "2024-10-15T10:36:05Z")

</div>

Hi @jcubic,

If you would like to use functions like the given example of yours:

```auto
_paq.push(['trackEvent', 'REPL', 'command', command]);

```

You should use it in the source code of your website, in most cases it’s in the HTML file or JavaScript logic.

However, if you prefer to use our tag manager, it’s not necessary to use these functions. You can create tags which will cover this logic on your website. Here are useful articles I recommend to read before using our [Tag Manager](https://help.piwik.pro/support/tag-manager/about-tag-manager/):

> **[Tags, triggers & variables | Piwik PRO help center](https://help.piwik.pro/support/tag-manager/)**
>
> Learn how to set up tags and triggers, create custom variables, use dataLayer, and more in Piwik PRO.

---

<div class="post-metadata">

**Author:** ![jcubic](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/jcubic/32/3805_2.png) [@jcubic](https://community.piwik.pro/u/jcubic)\
**Post date:** [October 15, 2024, 12:04pm UTC](https://community.piwik.pro/t/how-to-install-piwik-pro-tag-manager/4528/5 "2024-10-15T12:04:02Z")

</div>

No, I can’t use your website to create trigger because you only have very limited number of event triggers. I need to have logic. I don’t want to just add click event to a button on the page.

And my code is how you use tag manager and trigger the event programmatically.

---

<div class="post-metadata">

**Author:** ![Adam](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/adam/32/1494_2.png) [@Adam](https://community.piwik.pro/u/Adam)\
**Post date:** [October 18, 2024, 8:56am UTC](https://community.piwik.pro/t/how-to-install-piwik-pro-tag-manager/4528/6 "2024-10-18T08:56:13Z")

</div>

Hi @jcubic,

From what I understand you cannot use our Tag Manager because of lack events you would like to use. In this case, I suggest you to use our [React library](https://developers.piwik.pro/en/latest/data_collection/web/frameworks/Piwik_PRO_Library_for_React.html?highlight=react) (you mentioned this is engine used for your website).

Also, for other than React based websites, you can use our JavaScript library which is described [here](https://developers.piwik.pro/en/latest/data_collection/web/guides.html).

You can use it inline HTML, like here:

```auto
<button onclick="likePost(); _paq.push(['trackEvent', 'social', 'like-post', 'top-10-attractions-in-london'])">Like</button>

```

or alternatively, based on various conditions inside of event listener according to your needs:

```auto
 element.addEventListener('click', function () {
        if (window.document.title === "XYZ") {
            _paq.push(["trackEvent", "category", "action"])
        } else {
            _paq.push(["trackEvent", "category", "action"])
        }
    });

```

---

<div class="post-metadata">

**Author:** ![jcubic](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/jcubic/32/3805_2.png) [@jcubic](https://community.piwik.pro/u/jcubic)\
**Post date:** [October 18, 2024, 9:33pm UTC](https://community.piwik.pro/t/how-to-install-piwik-pro-tag-manager/4528/7 "2024-10-18T21:33:45Z")

</div>

You just repeated my code snippet in larger chunk of code.

The real problem is where to get tag manger code snipped that defines \_paq variable. I’m not able to find it anywhere in dashboard that should have instructions what to do after you created custom events in dashboard.

I also don’t see it in documentation. Is it a hidden knowledge?
