-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Suggestion: Add category to Quote Items for tracking with Google Analytics #91
Comments
Thank you for the suggestion. Contributing the code along with tests will highly increase the chance of having this functionality included in Magento 2 core code. |
joanhe
pushed a commit
that referenced
this issue
Nov 2, 2015
…sh-bottle-neck [Extensibility] Magetwo 44448 varnish bottle neck
okorshenko
pushed a commit
that referenced
this issue
Jun 12, 2016
ghost
mentioned this issue
May 3, 2018
magento-engcom-team
pushed a commit
that referenced
this issue
May 1, 2019
magento-engcom-team
pushed a commit
that referenced
this issue
Apr 29, 2020
…s-customer/issues/90 magento2-login-as-customer/issues/90: Tests stabilization.
5 tasks
5 tasks
5 tasks
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, on Mage_GoogleAnalytics_Block_Ga::_getOrdersTrackingCode() line 105 null is set for the category.
I have made a fix in the Add to cart form to add the category name (when Mage::registry('current_category') is set) so that it gets tracked through the checkout process.
My fix is really hacky but I guess it makes sense to add some generic "tracking_info" field to add any information necessary for conversion tracking (for Google Analytics or any other tool).
For the specific case of GA this field would contain the category (or category path) but it could be something else like "added from wishlist" or "email campaign" or whatever.
I guess the easiest way to do this would be to add an addTrackingInfo() method to catalog/product_view block so it can be manipulated via the layout using some custom helper.
what do you guys think?
The text was updated successfully, but these errors were encountered: