• I’m not getting the purchase data being sent to google analytics after a purchase is made.

    When this plugin is active it causes a blank screen to show after the user clicks ‘purchase’ and the payment goes through.

    I’m seeing lots of errors in the woocommerce logs, below is an example of the error type:

    How do I fix this?

    2023-09-18T01:09:47+00:00 CRITICAL Uncaught Error: Class 'Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore' not found in /var/www/envelopenpaper/wwwpublic/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php:426 Stack trace: #0 /var/www/envelopenpaper/wwwpublic/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php(860): gtm4wp_get_purchase_datalayer() #1 /var/www/envelopenpaper/wwwpublic/wp-includes/class-wp-hook.php(286): gtm4wp_woocommerce_datalayer_filter_items() #2 /var/www/envelopenpaper/wwwpublic/wp-includes/plugin.php(208): WP_Hook->apply_filters() #3 /var/www/envelopenpaper/wwwpublic/wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php(1011): apply_filters() #4 /var/www/envelopenpaper/wwwpublic/wp-includes/class-wp-hook.php(284): gtm4wp_wp_header_begin() #5 /var/www/envelopenpaper/wwwpublic/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters() #6 /var/www/envelopenpaper/wwwpublic/wp-includes/plugin.php(465): WP_Hook->do_action() #7 /var/www/envel in /var/www/envelopenpaper/wwwpublic/wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php on line 426

    after checkout there is a console error:

    Uncaught SyntaxError: Unexpected token '<' (at ?key=wc_order_1EtjVOcgdRT9B:2540:77)

    if( getCookieValue('woocommerce_items_in_cart') == '1' ) {
      console.log('y')

    source https://finecardstock.com/checkout/order-received/22888/?key=wc_order_1EtjVOcgdRT9B

    • This topic was modified 1 year, 2 months ago by lucytech.
    • This topic was modified 1 year, 2 months ago by lucytech.

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

  • The topic ‘woocommerce error’ is closed to new replies.