Hi, @sivaprasadgunji
I would start by either including a flag in your data layer that indicates whether or not the "add to cart" feature is available or disabled for the particular product, or by creating a Launch data element that looks in the HTML for the "add to cart" button and returns a disabled/enabled indicator.
Once you've identified whether the button is enabled or disabled, include the information on your call that includes the prodView event and s.products. Where and how you capture this (event, eVar, prop) is dependent on how you want to use the data. For example:
- You might consider an eVar (hit/recent) if you want to track both enabled and disabled. With this setup, you can quickly understand the frequency of "prodView" events that occur under each scenario.
- You might consider an event if you just want to track the frequency of "disabled" instances on a per-product basis.