-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add to cart event not sent when "Redirect to the cart page after successful addition" option is enabled. #427
Comments
Just for when we address this issue. Important to check in all the scenarios and add the test steps in https://github.com/woocommerce/woocommerce-google-analytics-integration/wiki/General-Testing or add E2E
|
7952298-zen |
I tested this issue again, but the results were not clear. In some cases, the redirection happens too quickly, not allowing enough time to send the event however today I got the correct event (add_to_cart) 95% of the time, making it difficult to test. We could use the Another alternative is to use |
@jorgemd24 Any news about this one? We have a merchant who is really upset in ticket 7952298-zen |
Hi @fetenlakhal, my results weren't clear enough to propose a solution. I'll tag @tomalec, who is the porter this week, to have a second look at this. Thanks for bringing it up. |
I was able to reproduce it 100% times with classic
The docs are no longer there, and from what I found on StackOverflow, the latest analytics use the I don't see an easy and 100% reliable solution here :/ I think we could either:
I think the 4. would be the cleanest and most reliable. However, It could take months to release and upgrade our merchants. I imagine someone from WC Core Team could oppose having a blocking event before such a redirect. //cc @martynmjones |
@tomalec thank you for explaining the issue and offering solutions. Could you please help with the implementation of the # 4 solution that you proposed? Does it involve modifying the core files? Either way I wouldn't mind doing that I as need a solution for this I am not able to track the add_to_cart event on google ads and really need a solution. |
Describe the bug:
The cart event is not sent when "Redirect to the cart page after successful addition" option is enabled.
Steps to reproduce:
Add to Cart
event is not sent.Expected behavior:
Add to Cart event should be sent regardless "Redirect to the cart page after successful addition" option
Actual behavior:
Add to Cart event is not sent when "Redirect to the cart page after successful addition" is enabled.
Additional details:
The text was updated successfully, but these errors were encountered: