# How to configure custom dimension and set the value for a custom event?

**URL:** <https://community.piwik.pro/t/how-to-configure-custom-dimension-and-set-the-value-for-a-custom-event/758>\
**Category:** Data collection and tags\
**Created:** [June 27, 2022, 8:53am UTC](https://community.piwik.pro/t/how-to-configure-custom-dimension-and-set-the-value-for-a-custom-event/758 "2022-06-27T08:53:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amit.tejas](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@amit.tejas](https://community.piwik.pro/u/amit.tejas)\
**Post date:** [June 27, 2022, 8:53am UTC](https://community.piwik.pro/t/how-to-configure-custom-dimension-and-set-the-value-for-a-custom-event/758/1 "2022-06-27T08:53:21Z")

</div>

Hi Team,

I wanted to set the custom dimension using custom code like we do in GA.  
ga(‘set’, ‘cd1’, ‘Level 1’);

Similar code for Piwik i need to know. Please help.

Thanks,  
Amit

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [June 27, 2022, 8:58am UTC](https://community.piwik.pro/t/how-to-configure-custom-dimension-and-set-the-value-for-a-custom-event/758/2 "2022-06-27T08:58:33Z")

</div>

[Those docs should help](https://developers.piwik.pro/en/latest/data_collection/web/javascript_tracking_client/api.html#custom-dimensions). 🙂

---

<div class="post-metadata">

**Author:** ![amit.tejas](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@amit.tejas](https://community.piwik.pro/u/amit.tejas)\
**Post date:** [June 27, 2022, 10:32am UTC](https://community.piwik.pro/t/how-to-configure-custom-dimension-and-set-the-value-for-a-custom-event/758/3 "2022-06-27T10:32:41Z")

</div>

thanks Kuba.

Other question- If we want to send multiple parameters than the default one in piwik then how can we do that.

For example:

```auto
_paq.push(['trackEvent',eventCategory, eventAction,eventLabel,eventValue,nonInteractionNew]);

```

using the above code to send the custom event i am getting the event parameter till event value. nonInteractionNew parameter is missing from the event.

How can we send all the event parameters? Please help

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [June 27, 2022, 10:39am UTC](https://community.piwik.pro/t/how-to-configure-custom-dimension-and-set-the-value-for-a-custom-event/758/4 "2022-06-27T10:39:32Z")

</div>

You have to use custom dimensions for that. To do so, just pass a json object as additional param with the key and value of the dimension.

```auto
_paq.push([‘trackEvent’, eventCategory, eventAction, eventLabel, eventValue,{ dimension1: "nonInteractionNew"}]);

```

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [August 10, 2022, 10:39am UTC](https://community.piwik.pro/t/how-to-configure-custom-dimension-and-set-the-value-for-a-custom-event/758/5 "2022-08-10T10:39:05Z")

</div>

Split this topic on August 10, 2022, 10:39am UTC

3 posts were split to a new topic: [Setting custom dimension value for a custom event](https://community.piwik.pro/t/setting-custom-dimension-value-for-a-custom-event/892)
