view_cart event is intermittently triggered twice when adding items to the minicart
Store Framework
•
ID: 1265581
Backlog
Published on8/8/2025
•
Last updated on8/8/2025
1 min read
Summary
When adding items to the cart, the view_cart
analytics event is intermittently triggered twice. This unexpected behavior leads to duplicate event entries, which can cause inaccuracies in data analysis and reporting.
Simulation
- Add a product to the minicart;
- Check your dataLayer, sometimes you will see two events of
view_cart
after theadd_to_cart
Workaround
N/A