• Resolved reghta

    (@reghta)


    Hi,

    When users complete a purchase via credit card then the purchase is not recorded in Analytics however it is recorded if the purchase is completed via a bank transfer. Any suggestions on how to fix this?

    Not sure if that is the reason but I have noticed the below difference between the two:

    When users complete a purchase via bank transfer the confirmation page link seems like below:
    busrapirlanta.com.tr/checkout/order-received/577458/?key=wc_order_IR7ur1kjnUUd1

    When users complete a purchase via credit card the confirmation page link seems like below:
    busrapirlanta.com.tr/checkout/order-received

    PS: We are using the Moka Payments’ official plugin: WooCommerce Moka Payment Gateway, github here

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter reghta

    (@reghta)

    gentle bump

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Sorry for the late reply.
    If your order received page looks different in any way (in the URL and/or the content) then this could break GTM tracking. I do not know this plugin but most probably they are altering somehow the order received page and GTM4WP is not recognizing this altered page as THE order received page.

    Could you ask plugin developers whether they are using this WP filter to inform other plugins which page they are using as the order received page?
    https://hookr.io/filters/woocommerce_is_order_received_page/

    Thread Starter reghta

    (@reghta)

    Thank you Thomas! Asked them about this. In the meantime in case it helps, they had shared that;

    They are not seeing the issue with some other plugins and that they are doing the redirect as below in line 526 in their github
    $this->get_return_url()
    and that updating with below might solve for it:
    $order->get_checkout_order_received_url();`

    Thread Starter reghta

    (@reghta)

    hi Thomas, confirming that once I changed the plugin code per earlier post the issue redirect is done to the proper page and the tracking is done as expected. Thanks for the amazing plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conversion not recorded if payment is by credit card’ is closed to new replies.