stefandoorn / sylius-google-tag-manager-enhanced-ecommerce-plugin

Enhanced Ecommerce implementation through Google Tag Manager for Sylius eCommerce Platform
MIT License
36 stars 20 forks source link

only add viewItem data if variant is found/enabled #186

Closed dsbe-ak closed 1 year ago

stefandoorn commented 1 year ago

Thanks!

I've refactored it a little bit to include the base data, but only the price data when the variant is found. The docs describe that it's possible to leave out price data.

https://github.com/stefandoorn/sylius-google-tag-manager-enhanced-ecommerce-plugin/commit/cd58087423ba4fb86a53ac9e5f18c21cdb6f389b