# Set fields directly from config tag (just like GA4)

**URL:** <https://community.piwik.pro/t/set-fields-directly-from-config-tag-just-like-ga4/542>\
**Category:** Data collection and tags\
**Created:** [March 29, 2022, 7:07am UTC](https://community.piwik.pro/t/set-fields-directly-from-config-tag-just-like-ga4/542 "2022-03-29T07:07:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WWNL](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/wwnl/32/292_2.png) [@WWNL](https://community.piwik.pro/u/WWNL)\
**Post date:** [March 29, 2022, 7:07am UTC](https://community.piwik.pro/t/set-fields-directly-from-config-tag-just-like-ga4/542/1 "2022-03-29T07:07:51Z")

</div>

Hello,

Is it somehow possible to directly “set fields” in the Piwik Pro config tag in GTM? I use this option to easily set-up the custom dimensions within the GA4 config tag. If not is there another easy way to send all custom dimensions?

Screenshot for some understanding of what I mean:

 ![ga-4](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/1X/8237158715407bb38649c8de6a3936c1ec22a2eb.jpeg)

---

<div class="post-metadata">

**Author:** ![kuba](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kuba/32/7_2.png) [@kuba](https://community.piwik.pro/u/kuba)\
**Post date:** [March 29, 2022, 10:08am UTC](https://community.piwik.pro/t/set-fields-directly-from-config-tag-just-like-ga4/542/2 "2022-03-29T10:08:28Z")

</div>

Hi @WWNL,

how did you install Piwik PRO snippet? If it was our GTM template then there’s not much you can do. Dimensions have to be set via separate tags.

My suggestion here would to be to [install Piwik PRO Tag manager](https://help.piwik.pro/support/getting-started/install-a-tracking-code/) (which also contains the analytics tag by default) via custom code tag in GTM. With such setup, you will be able to use the following interface in Piwik PRO:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/1X/f3c4061acbcda5ed8dd3a01bece6852dc5ac3be3.png)

---

<div class="post-metadata">

**Author:** ![WWNL](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/wwnl/32/292_2.png) [@WWNL](https://community.piwik.pro/u/WWNL)\
**Post date:** [March 29, 2022, 12:38pm UTC](https://community.piwik.pro/t/set-fields-directly-from-config-tag-just-like-ga4/542/3 "2022-03-29T12:38:43Z")

</div>

I have used your GTM template yes. I understand your suggestion, but it would require extra configuration, since I then need to create all the variables within PTM also right?

---

<div class="post-metadata">

**Author:** ![kuba](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kuba/32/7_2.png) [@kuba](https://community.piwik.pro/u/kuba)\
**Post date:** [March 29, 2022, 1:18pm UTC](https://community.piwik.pro/t/set-fields-directly-from-config-tag-just-like-ga4/542/4 "2022-03-29T13:18:11Z")

</div>

The data model of dataLayer is really similar but yes - you would have to define variables in Piwik PRO Tag Manager.
