Skip to content
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

Closed
barbazul opened this issue Sep 28, 2012 · 1 comment
Closed

Comments

@barbazul
Copy link
Contributor

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?

@magento-team
Copy link
Contributor

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.

magento-team pushed a commit that referenced this issue Feb 20, 2015
joanhe pushed a commit that referenced this issue Nov 2, 2015
…sh-bottle-neck

[Extensibility] Magetwo 44448 varnish bottle neck
mmansoor-magento pushed a commit that referenced this issue Feb 25, 2017
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants