• Resolved bashiachuki

    (@bakoline)


    Hi,

    This is very strange…

    Checkout thank you page works fine (when logged in) but eCommerce transactions/orders are not tracked by google analytics.

    From INCOGNITO tab checkout THANK YOU page has this error and there are below errors in error_log

    screenshot: https://i.imgur.com/P7otLDC.png

    [20-Sep-2019 14:17:26 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_sku() on boolean in /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php:400
    Stack trace:
    #0 /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php(337): WC_Google_Analytics_JS->add_item_universal(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Order_Item_Product))
    #1 /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php(284): WC_Google_Analytics_JS->add_transaction_universal(Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #2 /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics.php(332): WC_Google_Analytics_JS->add_transaction(Object(Automa in /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php on line 400
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter bashiachuki

    (@bakoline)

    When I turn off your plugin, everything works fine and checkout Thank you page loads on logged in and INCOGNITO tabs

    Thread Starter bashiachuki

    (@bakoline)

    Anyone?

    Thread Starter bashiachuki

    (@bakoline)

    UPDATE:

    I found out that this problem happens because of this plugin (transfers plugin which uses woocommerce for paying): https://codecanyon.net/item/chauffeur-booking-system-for-wordpress/21072773

    Checkout thank you page works fine (when logged in) but eCommerce transactions/orders are not tracked by google analytics.

    From INCOGNITO tab checkout THANK YOU page has this error and there are below errors in error_log

    screenshot: https://i.imgur.com/P7otLDC.png

    [20-Sep-2019 14:17:26 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_sku() on boolean in /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php:400
    Stack trace:
    #0 /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php(337): WC_Google_Analytics_JS->add_item_universal(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Order_Item_Product))
    #1 /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php(284): WC_Google_Analytics_JS->add_transaction_universal(Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #2 /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics.php(332): WC_Google_Analytics_JS->add_transaction(Object(Automa in /home/transfer/public_html/domains/transfersgeorgia.com/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics-js.php on line 400

    Any kind of help will be very helpfull

    Hi @bakoline,

    I apologize for the lateness in this response. It is good that you found what appears to be the issue in the booking system plugin; it might be that particular plugin blocks information being transmitted to Google Analytics.

    If you disable the plugin and do a test, does it work and report the information successfully with a different product tested?

    It is best to reach out to your plugin developer to see if this is the case, and provide this information to them. I do look forward to your reply!

    Thread Starter bashiachuki

    (@bakoline)

    Hi @nixiack8

    Yes, regular woocommerce products work fine, I get data in analytics.

    This is the plugin that has problem and I am getting above error. Unfortunately, plugin developer doesn’t want to help, so, guys, do you offer custom work? I am ready to pay for you to help me fix this problem with this plugin.

    Plugin Author Michael K

    (@mikkamp)

    Automattic Happiness Engineer

    Hi there,

    The error you posted is indicating that it was unable to load the product which was purchased in the order. Does one of the line items in the order reference something different besides a WooCommerce product? I would assume that’s something the plugin might be doing.

    We don’t provide any custom work ourselves, but if you are looking for a developer to help you out, I’d suggest to have a look at https://woocommerce.com/customizations/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘FATAL ERROR on checkout Thank You page’ is closed to new replies.