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

fix: DATA-11867 Fix duplicating add_to_cart meta pixel events #2467

Merged
merged 1 commit into from
May 27, 2024

Conversation

bc-rmalyavc
Copy link
Contributor

@bc-rmalyavc bc-rmalyavc commented May 24, 2024

What?

Remove remote_api_scripts from cart preview template which fixes duplicating addToCart event for Meta Pixel integration.
Previously we've added it to fix the legacy (UA) Google Analytics integration without realising it's duplicating Meta Pixel event. Since the legacy Google Analytics is sunset now, it's not a concern anymore, so it's safe to remove these scripts.

Requirements

  • CHANGELOG.md entry added (required for code changes only)

Tickets / Documentation

DATA-11867

PR where the issue was initially introduced: #2281

Screenshots (if appropriate)

Testing

  • Manually tested on dev store. Verified that only one addToCart event is firing now when I adding a product from PDP or QuickView product form

@bc-rmalyavc bc-rmalyavc marked this pull request as ready for review May 24, 2024 15:23
@bc-rmalyavc bc-rmalyavc requested review from a team and solofeed May 24, 2024 15:23
@bc-rmalyavc bc-rmalyavc merged commit d37627d into master May 27, 2024
3 checks passed
@bc-rmalyavc bc-rmalyavc deleted the DATA-11867 branch May 27, 2024 10:11
@mattcoy-arcticleaf
Copy link
Contributor

@bc-rmalyavc does the GA4 Add to Cart event still work? Previously, without this code, it did not work.

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

Successfully merging this pull request may close these issues.

5 participants