magepal / magento2-google-tag-manager

Google Tag Manager is a user-friendly, yet powerful and cost-effective solution that is a must-have integration for every Magento store. It simplifies the process of adding and managing third-party JavaScript tags. With dozens of custom events and hundreds of data points our extensions the #1 GTM solution for Magento.
https://www.magepal.com/google-tag-manager.html
259 stars 89 forks source link

Data Layer missing Currency Code in magepal-enhanced-ecommerce #51

Closed joshiprashiddha closed 5 years ago

joshiprashiddha commented 5 years ago

Magento version #: 2.2.6

Edition (EE, CE, OS, etc): CE

Expected behavior: PageType "checkout_cart_index" to have currencyCode

Actual behavior: currencyCode not passed in datalayer at PageType "checkout_cart_index" for paid version i.e. magepal-enhanced-ecommerce version 1.1.4

Steps to reproduce:

  1. Add product to cart.
  2. Check window.dataLayer at cart page for currencyCode. Will be found for free version but not for paid version for magepal enhanced ecommerce or GTM.

Preconditions

  1. Magento2 google tag manager installed from magepal.
  2. Magento2 enhanced ecommerce installed from magepal.

check paid magepal-enhanced-ecommerce version 1.1.4 view/frontend/layout/default.xml <argument name="show_ecommerce_currency_code" xsi:type="boolean">false</argument> at paid version.

srenon commented 5 years ago

A new version will be released soon that correct this...

update

<argument name="show_ecommerce_currency_code" xsi:type="boolean">false</argument>

to

<argument name="show_ecommerce_currency_code" xsi:type="boolean">true</argument>