graycoreio/daffodil

View on GitHub
libs/analytics-provider-data-layer/src/lib/layers/ecommerce/click.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { DataLayerProduct } from './product/product';

export interface ProductClickImpression extends DataLayerProduct {
  position: number;
}

export interface EcommerceDataLayerProductClick {
  event: 'productClick';
  ecommerce: {
    click: {
      actionField?: { list: string };
      products: ProductClickImpression[];
    };
  };
}