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

Problems with conversion tracking when paying with VIPPS #381

Open
ppc-nb opened this issue Nov 28, 2024 · 1 comment
Open

Problems with conversion tracking when paying with VIPPS #381

ppc-nb opened this issue Nov 28, 2024 · 1 comment

Comments

@ppc-nb
Copy link

ppc-nb commented Nov 28, 2024

Hello! Almost all conversions paid using this method are not showing up in the stats. We contacted the developer of Vipps MobilePay for WordPress plugin and here is his response:

"It depends on how the order is tracked. In general, you should be able to output data on the "thank you" page by just retrieving the order id in the thank you hook and outputting a datalayer, but we've found many plugins expect to be able to add tracking data on the checkout page, and they will mostly not work out-of-the-box on alternative checkout pages such as the Vipps one.

Fixing it will normally require to find out what the tracker normally does on the checkout page (typically, adds input fields to the checkout form) and then process these in the "Create order" hooks in the VippsCheckout class. Or modify the order using ajax when the page has loaded.

We do have added some support for plugins like e.g. monster insights, as well as hooks and filters to modify a given tracking system, but we unfortunately can't support all of them out of the box.

We may be able to assist depending on how your tracking is actually added to orders on the "normal" checkout page; or at least to add hooks and filters to enable you to handle this yourself."

Can you tell me what to say to him?

@duracelltomi
Copy link
Owner

If they have any docs about how they were able to support Monster Insights, I would be happy to review it and implement.

Purchase tracking is however done on the order reveived page using the woocommerce_thankyou hook. What could be also an issue that the order is marked as being tracked when the thankyou code runs. Sometimes, this code is executed in the background during order processing for some reason preventing proper tracking on the order received page. You might want to try to unset the corresponding checkbox in GTM4WP admin. ("Do not flag orders as being tracked" in Integration->WooCommerce. If you unset this checkbox and tracking works, then the issue is what I described here.

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

No branches or pull requests

2 participants