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

Issue with tracking quantity changes in cart #312

Open
martynmjones opened this issue Oct 5, 2023 · 0 comments
Open

Issue with tracking quantity changes in cart #312

martynmjones opened this issue Oct 5, 2023 · 0 comments
Labels
priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. type: enhancement The issue is a request for an enhancement.

Comments

@martynmjones
Copy link
Contributor

Describe the bug:

At the moment we're tracking changes to product quantities in the cart (when using blocks) with a change_cart_quantity event. This isn't an event that's supported by UA or GA4.

It could be used as a custom event but additional reporting would need to be set up in Google Analytics for that and there's no reference to it in the documentation so I'm unsure of its original purpose.

From what I can gather, it appears that the correct way to register the events would be to send add_to_cart or remove_from_cart events with the number of items removed.

Unfortunately, the current (experimental) -cart-set-item-quantity action gives us the total number of a product in the cart but not the difference. We'll likely either need to open a PR in blocks to change that or rely on the cart state instead but it will require further exploration.

@martynmjones martynmjones added type: bug The issue/PR is a confirmed bug. priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. labels Oct 5, 2023
@puntope puntope added type: enhancement The issue is a request for an enhancement. and removed type: bug The issue/PR is a confirmed bug. labels Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. type: enhancement The issue is a request for an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants