-
Notifications
You must be signed in to change notification settings - Fork 95
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
Problem with the "purchase" event #320
Comments
Hi, In similar cases there was some sort of payment processing plugin that abnormally executed codes normally run once during generating the order received page but in the background. Therefore when the order received page was really loaded, the order was already set to be tracked once. |
Hi, is there any possible solution? |
@takibulislam do you have a testing/sandbox/dev version of your site where I can place an order without the need to actually pay for the products? |
Hi @duracelltomi |
@duracelltomi this is the replay I'v got from the Dev team,
please let me know if you need anything else, appreciate your help |
Is it working if you select the direct bank transfer during checkout? |
@duracelltomi Thank you. |
Please send details to messenger at gtm4wp dot com. Thanks! |
@duracelltomi seems like many people facing the same issue nowadays, hope it will be resolved for all of us. Thanks for your support and waiting for your response! |
I received your message. I have a tough day today, it can happen that I will only be able to deep dive tomorrow |
OK, I was just too curious :-) It means that for any reason, another plugin is calling codes normally executing while showing the user the order confirmation page. GTM4WP flags the order as being tracked once and when the real order received page is shown, no purhcase event is fired since GTM4WP "sees" that it was already tracked once. |
This is exactly the same problem I mentioned, but it doesn't seem to me to be related to a payment processing plugin, we don't have the same @takibulislam and me. |
@atoupet-toki In my case I also feel like payment processing isn't responsible, I have tried turning off that plugin but still faced the same issue. but I'm not 100% sure. but anyway I hope Thomas will be able to figure out a decent solution for us. |
I just want to let you know that I am committed finding a solution to this situation but I have limited time to investigate. I do my best to find a solution as soon as possible. |
hey @duracelltomi ! Have you found anything to fix the bug? |
Hi, No yet but I had an extremely busy week behind me, most probably I will have time to continue with the investigation next week. |
Hello!
We have a problem with the "purchase" event.
Wordpress and all plugins are updated. We have also tested gtm4wp version 1.20-beta.2.
We also followed the tutorials to setup the plugins and the GTM (New empty container, and importing the json container from the tutorial).
We have all events in dataLayer, except "purchase".
We've debugged the plugin code, and it seems that the
$order->update_meta_data
functions are called before the purchase_datalayer. If we comment out the 2 lines$order->update_meta_data( '_ga_tracked', 1 );
it works. But we can see that .... the 2 lines are after the purchase_datalayer.We are using Complianz plugin for cookies. But same probleme without this plugin
Has anyone submitted a similar request? Do you need more information to test and validate something? Please let me know.
Thanks in advance
Here is capture of datalayer:
The text was updated successfully, but these errors were encountered: