- Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix issue #37348: Google GTag add ecommerce data fix. #37349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue #37348: Google GTag add ecommerce data fix. #37349
Conversation
Hi @Bashev. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Sample Data Tests B2B, Sample Data Tests EE, Functional Tests B2B, Functional Tests EE, Integration Tests, Static Tests, Unit Tests, WebAPI Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@Bashev Appreciate the good work you are putting into this. I have also looked into this and found that by including currency and changing the number values to be outputted correctly (removing quotation marks, following Google docs), Google now reads it as e-commerce data and includes it as revenue. Which issues are you facing? I thought about creating a simple PR, but it looks like you are being more thorough and solving more things than me. |
@kasperth if currency is not on the order level GA not recognize order amount and everytime is reported as 0. When move the currency inside the order start working properly. Your finding is correct,. During the fix i add additional things as coupons and discounts into the datalayer which will be send to GA. Unfortunately some of these changes reflect to changes of Someone from the team need to support this PR. |
@magento run all tests |
@magento run all tests |
Fixed Unit test failures and other failing tests are not related to PR changes and some of them are known failure. |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, WebAPI Tests |
@magento run all tests |
Hi @Bashev, Thanks for the collaboration & contribution! ❌ QA not Passed ✔️ Expected result After Fix Coupon and Discount data should be present in gtag data ❌ Actual result After Fix ![]() ![]() Let us know if we are missing anything. Thanks. |
@engcom-Bravo mentioned improvements are in separate PR #37504 which was closed for unclear reason. They are 2 separate PRs
|
Hi @Bashev, Thanks for your update. ✔️ QA Passed Before: ✖️ ![]() After: ✔️ ![]() Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
@magento run WebAPI Tests,Unit Tests,Functional Tests EE,Functional Tests CE,Functional Tests B2B |
@magento run all tests |
@magento run Functional Tests B2B,Functional Tests CE,Functional Tests EE,Integration Tests,WebAPI Tests |
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)