• Sam

    (@samfrostnz)


    Hi,

    I’m having an issue getting GTM4WP working with a 3rd party/external payment gateway called ‘eway’ (https://eway.io/)

    All the ecomm events work fine until you leave the site to go to the eway payment page, and then when you hit the order confirmation page back on the site (which you must also elect to do by choosing “return to merchant”) there is nothing in the datalayer/no eCommerce events.

    I’ve been able to hack together a workaround by reading the purchase total on the order confirmation page and then passing that to the datalayer as a custom variable, and then using that along with a triggered “purchase” event … but I’d ideally like everything running through the GTM4WP setup.

    Any ideas how to solve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Had this bug too where the purchase event not being push.

    My workaround was to add in the elseif ( is_order_received_page() ) in intergrations/woocommerce.php

            if ( isset( $order ) ) {
    $customer_ip = get_post_meta( $order_id, '_customer_ip_address', true );
    if ($customer_ip !== $_SERVER['REMOTE_ADDR']) {
    unset($order);
    }
    }

    Seems like there is some work on the server side triggering the _ga_tracked, then when the thank you page pop, because the _ga_tracked is already flagged so nothing is push to GTM…

    I did not dive more but now my paypal/ card gateway are working.

    Hi @samfrostnz did fix the problem? I have same issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.