# Custom attributes for ECommerce

**URL:** <https://community.piwik.pro/t/custom-attributes-for-ecommerce/2510>\
**Category:** Data collection and tags\
**Created:** [July 3, 2023, 9:43am UTC](https://community.piwik.pro/t/custom-attributes-for-ecommerce/2510 "2023-07-03T09:43:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikhail\_Albershtein](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mikhail_albershtein/32/2019_2.png) [@Mikhail\_Albershtein](https://community.piwik.pro/u/Mikhail_Albershtein)\
**Post date:** [July 3, 2023, 9:43am UTC](https://community.piwik.pro/t/custom-attributes-for-ecommerce/2510/1 "2023-07-03T09:43:44Z")

</div>

Hello!  
Please, help me to understand the flow.  
I have a marketplace website and I would like to add additional fields to the e-commerce analytics(offer id, seller name, etc…). As far as I understand I cannot do that. Even with the custom dimensions?

I tried to create my own e-commerce analytics with more or less the same flow as the out-of-the-box one, but I could not understand how to create a list of nested dimensions. (like the one that we have in the cart\_update(products) →   
Items:[{  
product.name: “a”  
},  
{  
product.name: “b”  
},  
…  
]  
Thank you

---

<div class="post-metadata">

**Author:** ![asinior](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/asinior/32/1905_2.png) [@asinior](https://community.piwik.pro/u/asinior)\
**Post date:** [July 3, 2023, 11:19am UTC](https://community.piwik.pro/t/custom-attributes-for-ecommerce/2510/2 "2023-07-03T11:19:00Z")

</div>

Hi,  
Welcome to the Piwik PRO community! We are glad to have you here.

Yes, we have a fixed set of dimensions that we use to track the ecommerce data. Custom dimensions will be supported in the future releases.

Have you had a chance to skim through our ecommerce documentation?

Here is an article on how to set up the ecommerce environment:

> **[Set up ecommerce tracking | Piwik PRO help center](https://help.piwik.pro/support/getting-started/track-ecommerce/)**
>
> If you run an online store and want to keep track of transactions and other shopping data, our ecommerce tracking and reports can help. To use our ecommerce tracking, you’ll need to add a few JavaScript methods to your online store to track events...

And here is a documentation about the ecommerce methods described in greater detail:

> **[API](https://developers.piwik.pro/en/latest/data_collection/web/javascript_tracking_client/api.html#e-commerce-v2)**
>
> The following API allows the user to: track page views, track visits on multiple domains and subdomains, track e-commerce events (successful orders, cart changes, product and category views), track...

Also, remember to map the products object correctly, here is how you could do it:

> **[Solution Templates | Piwik PRO](https://piwikpro.github.io/solutions-templates/#ecommerce-product-detail-view)**
>
> Use our library of custom tags to collect more data from your site.

---

<div class="post-metadata">

**Author:** ![Mikhail\_Albershtein](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mikhail_albershtein/32/2019_2.png) [@Mikhail\_Albershtein](https://community.piwik.pro/u/Mikhail_Albershtein)\
**Post date:** [July 3, 2023, 12:22pm UTC](https://community.piwik.pro/t/custom-attributes-for-ecommerce/2510/3 "2023-07-03T12:22:24Z")

</div>

Hi Adam,  
Thank you for the warm welcome and for coming back to me.  
Yes, I have successfully working e-commerce tracking.  
I was reading the documentation and have been playing around but still couldn’t find the information about these 2 topics:

1. Custom dimensions for e-commerce data(based on your reply I understand it’s not possible for now)
2. Creating custom dimensions with object-scope level. Taking a product from e-commerce tracking as an example, how can I create a similar custom dimension that has fields inside of it?  
My idea is to create custom dimensions based on the current e-commerce fields enhancing it with the attributes that I need. For example, in the cart\_update I want to track the offer id **per product** , but I cannot find a way to assign a **custom** dimension for the product’s scope(or other dimension scope).

Items:[{  
product.name: “product-a”  
**product.offerId** : “123”  
},

Or, if I cannot enhance the product, how can I create a dimension similar to the product, that contains fields inside of it

Thank you,  
Mikhail

---

<div class="post-metadata">

**Author:** ![Mikhail\_Albershtein](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mikhail_albershtein/32/2019_2.png) [@Mikhail\_Albershtein](https://community.piwik.pro/u/Mikhail_Albershtein)\
**Post date:** [July 5, 2023, 10:42am UTC](https://community.piwik.pro/t/custom-attributes-for-ecommerce/2510/4 "2023-07-05T10:42:35Z")

</div>

Hello Adam,  
Is there any update on this?  
Thank you,  
Mikhail

---

<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:** [July 6, 2023, 2:02pm UTC](https://community.piwik.pro/t/custom-attributes-for-ecommerce/2510/5 "2023-07-06T14:02:21Z")

</div>

Hi Mikhail, sorry for the late reply. As the Adam is OOTO, another Adam showed up to answer 😃  
I went through your topic and unfortunately, currently for the ecommerce we are not able to additionally push custom dimensions. Product scope custom dimensions is a feature which will be introduced with the second release of our new ecommerce. Planned date for the release is the 31 of July.

---

<div class="post-metadata">

**Author:** ![Mikhail\_Albershtein](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mikhail_albershtein/32/2019_2.png) [@Mikhail\_Albershtein](https://community.piwik.pro/u/Mikhail_Albershtein)\
**Post date:** [July 6, 2023, 3:05pm UTC](https://community.piwik.pro/t/custom-attributes-for-ecommerce/2510/6 "2023-07-06T15:05:35Z")

</div>

> [@Adam](#):
>
> I went through your topic and unfortunately, currently for the ecommerce we are not able to additionally push custom dimensions. Product scope custom dimensions is a feature which will be introduced with the second release of our new ecommerce. Planned date for the release is the 31 of July.

Hi Adam,  
Thank you for the information!
