constant EnhancedEcommerceEvents::ALTER_PRODUCT_PURCHASED_ENTITY in Commerce Google Tag Manager 8
Same name and namespace in other branches
- 8.2 src/Event/EnhancedEcommerceEvents.php \Drupal\commerce_google_tag_manager\Event\EnhancedEcommerceEvents::ALTER_PRODUCT_PURCHASED_ENTITY
Allows to alter the GTM Product field mapping.
Allows alteration of field mapping from Commerce product to a GTM Product. Use this event to alter data Product in case there is no product variation before it gets pushed to data layer.
See also
\Drupal\commerce_google_tag_manager\Event\AlterProductPurchasedEntityEvent
File
- src/
Event/ EnhancedEcommerceEvents.php, line 33
Class
- EnhancedEcommerceEvents
- Defines events for the Commerce Google Tag Manager Enhanced Ecommerce module.
Namespace
Drupal\commerce_google_tag_manager\EventCode
const ALTER_PRODUCT_PURCHASED_ENTITY = 'commerce_google_tag_manager.alter_product_purchased_entity';