-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
PrestaShop/ps_googleanalytics
#170Labels
9.0.xBranchBranchBugType: BugType: BugGoogle AnalyticsModule: ps_googleanalyticsModule: ps_googleanalyticsNMIStatus: issue needs more informationStatus: issue needs more informationPR availableSolution: issue is being addressedSolution: issue is being addressedWaiting for authorStatus: action required, waiting for author feedbackStatus: action required, waiting for author feedback
Description
Prerequisites
- I understand and accept the project's code of conduct.
- I have already searched in existing issues and found no previous report of this bug.
Describe the bug and add attachments
Currently, the ps_googleanalytics module doesn't send events when they occurs (like the add to cart even) but add them on a queue, flushed on the next page load/change
This could be good for some events, but it loose a lot of add_to_cart events especially if you use a theme with an ajax add to cart button or if you have the redirect to cart disabled (default, I think).
In this case, the event is scheduled, but never sent to google if customer leave the website. I can see a lot of events still stored in the table, and they are never flushed, probably because the customer has left the website just after pressing the add to cart button.
Expected behavior
Events sent as soon as they occurs, not only queued for later flush
Steps to reproduce
- press 'add to cart' button
- close the website without changing the page
PrestaShop version(s) where the bug happened
8.1
PHP version(s) where the bug happened
No response
If your bug is related to a module, specify its name and its version
ps_googleanalytics
Your company or customer's name goes here (if applicable).
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
9.0.xBranchBranchBugType: BugType: BugGoogle AnalyticsModule: ps_googleanalyticsModule: ps_googleanalyticsNMIStatus: issue needs more informationStatus: issue needs more informationPR availableSolution: issue is being addressedSolution: issue is being addressedWaiting for authorStatus: action required, waiting for author feedbackStatus: action required, waiting for author feedback