• Resolved emarketingclusters

    (@emarketingclusters)


    Hello!

    The last few months we face a problem with our Google Analytics revenue; it doesn’t match with our Woocommerce sales report.

    So we started to check frequently the last 2-3 weeks and noticed that from 25 sales made with Woocommerce, 10 of them didn’t show up in our Google Analytics console.

    We thoroughly checked these 10 orders and didn’t find any common element between them.
    More specifically we didn’t find any pattern such as the payment method (cash on delivery, pay with credit card etc), the shipping cost or method, the date or time, the total cost or any other order feature that could be the same in all of these orders and cause the problem.

    The browsers used by the customers where also various.

    Could you direct us to what might be at fault for our missing transactions in Google Analytics?

    Please note that the “Enable Enhanced eCommerce” is NOT checked in the plugin settings and instead we use the following code in theme’s functions.php

    <?php
    /*********** Google Conversion Tracking  ************/
    function google_conversion_tracking() {
    ?>
    <!-- Global site tag (gtag.js) - Google Ads: ********* -->
    	<script async src=https://www.googletagmanager.com/gtag/js?id=AW-***********></script>
    	<script>
    		window.dataLayer = window.dataLayer || [];
    		function gtag(){dataLayer.push(arguments);}
    		gtag('js', new Date());
    		gtag('config', 'AW-***********');
    	</script>
    <?php
    }
    add_action('wp_head', 'google_conversion_tracking');
    ?>
    
    <?php
    add_action( 'wp_head', function(){
    ?>
    <!-- Google Tag Manager -->
        <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
        new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
        j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
        'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
        })(window,document,'script','dataLayer','GTM-*******');</script>
        <!-- End Google Tag Manager -->
    <?php
    });
    ?>
    
    <?php
    add_action('wp_body_open', function(){
    ?>
        <!-- Google Tag Manager (noscript) -->
        <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-*******"
        height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
        <!-- End Google Tag Manager (noscript) -->
    <?php
    });
    ?>
    
    <?php
    add_action('woocommerce_thankyou','add_purchase_conversion_tracking');
    function add_purchase_conversion_tracking($order_id) {
    	if (!$order_id) return;
    		$order = wc_get_order($order_id);
    	if ($order) {    
    		$order_total = $order->get_total();
    ?>
    <!-- Event snippet for Product Purchase conversion page -->
    <script>gtag('event', 'conversion', {
    	'send_to': 'AW-***********/********************',
    	'value': '<?= $order_total ?>',
    	'currency': 'EUR',
    	'transaction_id': ''});    
    </script>
    <?php
    	}
    }
    ?>
    <?php
    add_action( 'wp_enqueue_scripts', 'bbloomer_disable_woocommerce_cart_fragments', 11 ); 
    function bbloomer_disable_woocommerce_cart_fragments() { 
       wp_dequeue_script( 'wc-cart-fragments' ); 
    }
    ?>
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @emarketingclusters

    I understand that your Google Analytics revenue is not matching with your WooCommerce sales report, and that a pattern cannot be identified among the cases where it is happening.

    As a first step we’d like to rule out the possibility of the following setting behind this discrepancy:

    IMAGE
    Link to image: https://snipboard.io/9v3LAg.jpg

    Many times WooCommerce reports have been found to count orders differently due to this setting. Can you please check and let us know?

    You may also want to check the solutions provided in the following threads where users have discussed the same issue:
    https://wordpress.org/support/topic/google-analytics-data-nor-matching-woocommerce-data/
    https://wordpress.org/support/topic/woocommerce-orders-not-match-to-ga/

    Thread Starter emarketingclusters

    (@emarketingclusters)

    Thank you @margaretwporg

    We currently have older Woocommerce version 3.8.3 and we don’t have Woocommerce Analytics available (nor the settings).

    We choose to not update Woocommerce and stay with the older version because we face multiple problems with newer version.

    Do you have any suggestion here?

    Thanks!

    Hi @emarketingclusters

    we don’t have Woocommerce Analytics available

    Apologies about my incorrect assumption – I understand now that the mismatch is with WooCommerce sales report and not WooCommerce Analytics.

    We choose to not update Woocommerce and stay with the older version because we face multiple problems with newer version.

    Deciding not to update WooCommerce is generally not a very good idea since it could cause all sorts of issues, including security vulnerabilities.

    If you’re interested, here’s a good post on why it’s important to keep your store up to date: https://woocommerce.com/posts/why-keep-woocommerce-updated/.`

    Read more here on why it is not a good practice to use outdated software: https://woocommerce.com/document/woocommerce-self-service-guide/#section-2

    We currently have older Woocommerce version 3.8.3

    That is a pretty old version! We strongly recommend updating WooCommerce to the latest version. Here’s a helpful guide: https://woocommerce.com/document/how-to-update-woocommerce/

    * As you would be updating from a rather old WooCommerce version, I would recommend taking a full backup of your site and database before the update, so that if something goes wrong, you can easily restore your site to a functioning state. Most hosting providers have this included in the subscription, but you may also consider using a service like Jetpack, or a plugin like UpdraftPlus.

    Besides WooCommerce you should also update the WooCommerce Database to match the core version. You can do it from WooCommerce > Status > Tools > Update database. Here’s a helpful guide: https://woocommerce.com/document/how-to-update-woocommerce/#woocommerce-data-update-notice

    Once these are done, in order for us to get a better idea of your setup, please share a copy of your site’s System Status. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.

    We’ll look forward to your response and will be happy to assist further.

    Thread Starter emarketingclusters

    (@emarketingclusters)

    Hello @margaretwporg

    So you conclude that the problem is caused by the old woocommerce version?

    If we proceed to the Woocommerce update the site will brake. We plan to rebuild our website in the future but we currently need a solution without updating.

    Could you provide a solution with this old version?

    Hi @emarketingclusters,

    So you conclude that the problem is caused by the old woocommerce version?

    That version of WooCommerce is out of date and may not be compatible with many other extensions, and the reports generated with the legacy Reports feature will not be accurate when refunds and coupons are included, among other issues.

    Could you provide a solution with this old version?

    I’m afraid that the legacy WooCommerce Reports feature is no longer being actively developed or supported since we moved over to WooCommerce Analytics with the release of version 4.0 some time ago.

    Generally, when it comes to an issue of compatibility with other extensions, we’re only able to provide support for the 3 most recent minor versions of WooCommerce, which are 6.6, 6.5, and 6.4.

    As @margaretwporg shared, we strongly recommend updating WooCommerce to the latest version (or at least version 6.4) so you can take advantage of the current Analytics features and support, and ensure proper compatibility with WooCommerce Google Analytics Integration.

    Please let us know if you have any questions about how to do so safely.

    We’ve not heard back from you in a while, so I’m marking this thread closed. Hopefully, the above info was helpful.

    If you have further questions, please feel free to open a new topic.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Missing transactions in Google Analytics’ is closed to new replies.