• Resolved Steve

    (@thewebsmiths)


    Hi,
    We’ve been using WooCommerce Google Analytics Integration on one of our sites for over a year without problem.
    However, 1 month ago it stopped tracking ecommerce transactions.
    Visitors are still tracked in Analytics and the tracking code is in the source of the /checkout/order-received/ page but no transactions are logged in Analytics.
    WP, WC and all plugins are at their most up to date versions.
    Can you help please?

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

Viewing 15 replies - 1 through 15 (of 19 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @thewebsmiths!

    Do you recall making any changes to your site around the same time this started happening? It could be an update to your theme, another plugin, or even adding a new plugin to your site.

    Furthermore, could you please send us your status report so we can take a closer look at your setup and see if there are any red flags that might help us point to where the issue might be coming from.

    Cheers!

    Thread Starter Steve

    (@thewebsmiths)

    Hi @rynald0s
    Thank you for your reply.
    There have been no changes or plugins added.
    We have updated plugins along the way, the only one that seems to correspond with the transactions stopping is actually 1.5.2 of the WooCommerce Google Analytics Integration plugin.
    How should I send you the status report?

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Thread Starter Steve

    (@thewebsmiths)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://graphicdesignsupplies.co.uk
    Site address (URL): https://graphicdesignsupplies.co.uk
    WC Version: 5.6.0
    REST API Version: ? 5.6.0
    WC Blocks Version: ? 5.5.1
    Action Scheduler Version: ? 3.2.1
    WC Admin Version: ? 2.5.1
    Log Directory Writable: ?
    WP Version: 5.8
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.22
    PHP Post Max Size: 16 MB
    PHP Time Limit: 36000
    PHP Max Input Vars: 5000
    cURL Version: 7.29.0
    NSS/3.53.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.1.48-MariaDB
    Max Upload Size: 16 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.6.0
    WC Database Prefix: wp_
    Total Database Size: 745.86MB
    Database Data Size: 543.12MB
    Database Index Size: 202.74MB
    wp_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 7.52MB + Index: 2.52MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 26.56MB + Index: 23.06MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 2.02MB + Index: 1.08MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 1.02MB + Index: 0.48MB + Engine InnoDB
    wp_adtribes_my_conversions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_aws_cache: Data: 46.46MB + Index: 0.00MB + Engine MyISAM
    wp_aws_index: Data: 2.72MB + Index: 1.71MB + Engine MyISAM
    wp_commentmeta: Data: 7.52MB + Index: 8.03MB + Engine InnoDB
    wp_comments: Data: 23.56MB + Index: 21.09MB + Engine InnoDB
    wp_grp_google_place: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_grp_google_review: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailchimp_carts: Data: 0.38MB + Index: 0.00MB + Engine InnoDB
    wp_mailchimp_jobs: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_options: Data: 126.38MB + Index: 0.25MB + Engine InnoDB
    wp_postmeta: Data: 118.66MB + Index: 77.23MB + Engine InnoDB
    wp_posts: Data: 58.41MB + Index: 10.70MB + Engine InnoDB
    wp_redirection_404: Data: 40.41MB + Index: 4.42MB + Engine MyISAM
    wp_redirection_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_redirection_items: Data: 5.91MB + Index: 3.59MB + Engine MyISAM
    wp_redirection_logs: Data: 3.75MB + Index: 0.39MB + Engine MyISAM
    wp_termmeta: Data: 0.22MB + Index: 0.36MB + Engine InnoDB
    wp_terms: Data: 0.41MB + Index: 0.58MB + Engine InnoDB
    wp_term_relationships: Data: 2.52MB + Index: 2.41MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.42MB + Index: 0.25MB + Engine InnoDB
    wp_usermeta: Data: 24.56MB + Index: 21.06MB + Engine InnoDB
    wp_users: Data: 1.52MB + Index: 3.31MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 2.52MB + Index: 1.88MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 5.52MB + Index: 6.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 3.52MB + Index: 3.52MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 2.52MB + Index: 3.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 1.33MB + Index: 0.72MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.16MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 1.27MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 4.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 1.02MB + Index: 1.14MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 1.02MB + Index: 0.17MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.17MB + Index: 0.11MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wp_yoast_indexable: Data: 14.15MB + Index: 1.92MB + Engine MyISAM
    wp_yoast_indexable_hierarchy: Data: 0.15MB + Index: 0.48MB + Engine MyISAM
    wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_yoast_primary_term: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_yoast_seo_links: Data: 0.85MB + Index: 0.31MB + Engine MyISAM
    wp_yoast_seo_meta: Data: 0.07MB + Index: 0.07MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 7626
    ct_template: 8
    nav_menu_item: 151
    oembed_cache: 4
    oxy_user_library: 3
    page: 76
    post: 212
    product: 3283
    product_variation: 219
    revision: 1503
    shop_coupon: 29
    shop_order: 28962
    shop_order_refund: 216
    sidebar: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (24) ###
    
    Advanced Woo Search PRO: by ILLID – 2.35
    Booster Plus for WooCommerce: by Pluggabl LLC – 5.4.6
    Bulk Edit Products, Prices & Attributes for Woocommerce: by ELEX – 1.0.8
    Cart2Cart: Password Migration: by MagneticOne – 1.1
    Classic Editor: by WordPress Contributors – 1.6.2
    Cookie Notice & Compliance for GDPR / CCPA: by Hu-manity.co – 2.1.3
    Mailchimp for WooCommerce: by Mailchimp – 2.5.2
    Oxy Ultimate: by Paul Chinmoy – 1.4.30
    Oxygen Elements for WooCommerce: by Soflyy – 1.4
    Oxygen: by Soflyy – 3.8.1
    Oxy Ultimate Woo: by Paul Chinmoy – 1.2.11
    Redirection: by John Godley – 5.1.3
    Salt Shaker: by Nagdy – 1.2.9
    TheWebSmiths mods: by Steve Sproston – 1.0
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.61
    
    Widget for Google Reviews: by RichPlugins  – 1.9.7
    Cost & Reports for WooCommerce: by Consortia – 3.0.4
    Product Feed PRO for WooCommerce: by AdTribes.io – 10.5.5
    WooCommerce Opayo Payment Suite: by Andrew Benbow – 5.4.0
    WooCommerce Google Analytics Integration: by WooCommerce – 1.5.2
    WooCommerce Sequential Order Numbers: by SkyVerge – 1.9.5
    WooCommerce: by Automattic – 5.6.0
    Wordfence Security: by Wordfence – 7.5.5
    Yoast SEO: by Team Yoast – 17.0
    
    ### Inactive Plugins (5) ###
    
    Facebook for WooCommerce: by Facebook – 2.6.4
    Oxygen Gutenberg Integration: by Soflyy – 1.4
    TheWebSmiths Facebook chat: by Steve Sproston – 1.0
    Trustpilot-reviews: by Trustpilot – 2.5.886
    WP Mail SMTP: by WPForms – 3.0.3
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ?
    
    ### WC Pages ###
    
    Shop base: #9 - /shop/
    Basket: #10 - /basket/
    Checkout: #11 - /checkout/
    My account: #12 - /my-account/
    Terms and conditions: #168 - /conditions-of-use/
    
    ### Theme ###
    
    Name: Twenty Twenty
    Version: 1.8
    Author URL: https://en-gb.www.ads-software.com/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build
    personally we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 3,442
    Oldest: 2021-08-03 11:03:36 +0100
    Newest: 2021-09-02 14:21:12 +0100
    
    ### sagepay ###
    
    MCrypt: ? No
    OpenSSL: ? Yes
    OpenSSL Methods: ? Yes
    PHP Max_Input_Vars: ? 5000
    SagePay Form Enabled?: ?
    Opayo Direct Enabled?: ?
    Opayo Server Enabled?: ?
    Opayo Pi Enabled?: ?
    Opayo Reporting (Test): ?
    Opayo Reporting (Live): ?
    
    ### Status report information ###
    
    Generated at: 2021-09-02 14:37:21 +01:00
    
    Plugin Support B C. a11n

    (@battouly)

    Hi @thewebsmiths,

    Thanks for sharing the system status report. I see you have the latest version of the WooCommerce Google Analytics extension, and you don’t have other plugins sending data to Google, which could conflict.

    As a first step, If you are still not seeing data, please make sure eCommerce is enabled within Google Analytics as shown in this support documentation:

    https://docs.woocommerce.com/document/google-analytics-integration/

    Next, make sure it is enabled within the plugin’s settings too. Then, wait for propagation, which will take about 24 hours. When testing, make sure that the payment method used redirects the customer back to the proper thank you/order received page.

    See “Purchase Transactions:” in the documentation above.

    I’d recommend using a non-admin account for the test to see what customers see when purchasing from the site and check if data is shown thereafter.

    Thread Starter Steve

    (@thewebsmiths)

    HI @battouly
    Thank you for your reply.
    I can confirm that all those settings have been checked already and are all as they should be. For good measure I’ve checked them all again now and they are still showing correctly but no transactions are showing.

    Plugin Support Sol J. a11n

    (@solstudioim)

    Hi @thewebsmiths

    Thanks for your reply.

    I can confirm that all those settings have been checked already and are all as they should be. For good measure I’ve checked them all again now and they are still showing correctly but no transactions are showing.

    That’s odd!

    As mentioned previously by @battouly could you please try to make a test purchase like on incognito browser window, and wait 24 hrs for that test purchase data to be shown on GA.

    Secondly, also you can check on your GA account, usually when there is an issue, you can check on the notification icon on the top right corner, for example in my case I have two unopened notifications.

    Usually Google would advise what to do if you have any tracking issue:


    Link to image: https://d.pr/i/kpFL28

    I hope that helps!

    If you have any other questions, do not hesitate to let us know!

    Thread Starter Steve

    (@thewebsmiths)

    Hi @solstudioim

    The GA account does indeed warn that there is an issue with no ecommerce data flowing but all settings appear to be correct within GA.

    View Graphic Design Supplies is configured for E-commerce, but no recent transaction data is being received. Your site may not be tagged for E-commerce.

    I had completed a test transaction a few days ago which didn’t show up but have just completed another in an incognito window as a guest. I am returned to the correct /checkout/order-received/… page after payment. This page does include your GA- information in the source as did the order received page of my test 2 days ago:

    <!-- WooCommerce Google Analytics Integration -->
    		<script type='text/javascript'>
    			var gaProperty = 'UA-2850072-2';
    			var disableStr = 'ga-disable-' + gaProperty;
    			if ( document.cookie.indexOf( disableStr + '=true' ) > -1 ) {
    				window[disableStr] = true;
    			}
    			function gaOptout() {
    				document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
    				window[disableStr] = true;
    			}
    		</script>
    		<script type='text/javascript'>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    		(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    		m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    		})(window,document,'script', '//www.google-analytics.com/analytics.js','ga');ga( 'create', 'UA-2850072-2', 'auto' );(window.gaDevIds=window.gaDevIds||[]).push('dOGY3NW');ga( 'require', 'displayfeatures' );ga( 'require', 'linkid' );ga( 'set', 'anonymizeIp', true );
    		ga( 'set', 'dimension1', 'no' );
    ga( 'require', 'ec' );</script>
    		<script type='text/javascript'>
    			var ga_orders = [];
    			try {
    				ga_orders = localStorage.getItem( 'ga_orders' );
    				ga_orders = ga_orders ? JSON.parse( ga_orders ) : [];
    			} catch {}
    			if ( -1 === ga_orders.indexOf( '42727' ) ) {
    				ga( 'set', '&cu', 'GBP' );ga( 'ec:addProduct', {'id': '38517','name': 'Temp product','category': 'Test category/Uncategorised','price': '1','quantity': '1'});ga( 'ec:setAction', 'purchase', {
    			'id': '42727',
    			'affiliation': 'Graphic Design Supplies | GDS',
    			'revenue': '1.20',
    			'tax': '0.2',
    			'shipping': '0'
    		} );
    				try {
    					ga_orders.push( '42727' );
    					localStorage.setItem( 'ga_orders', JSON.stringify( ga_orders ) );
    				} catch {}
    			}</script>
    		<!-- /WooCommerce Google Analytics Integration -->

    I also note that my visit to the checkout/order-received/ page doesn’t show in GA realtime mode at all, going away from it then back shows me on the other pages but not the order-received page.

    Any ideas?

    • This reply was modified 3 years, 2 months ago by Steve.
    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    Thanks for trying the test purchase.

    I also note that my visit to the checkout/order-received/ page doesn’t show in GA realtime mode at all, going away from it then back shows me on the other pages but not the order-received page.
    Any ideas?

    That sounds like caching might be interfering. Could check if there is any caching in place and deactivate it for the time being.

    Maybe via: your page builder Oxygen: by Soflyy – 3.8.1 or Booster Plus for WooCommerce(?)

    Kind regards,

    Thread Starter Steve

    (@thewebsmiths)

    Hi @conschneider

    We don’t use any caching on this site at all.

    To be safe I have checked Oxygen settings, etc. and any available caching is disabled.

    Plugin Support nicw.a11n

    (@nicw)

    Hi @thewebsmiths

    I’ve made a number of recordings of your site using the Google Tag Assistant Legacy Chrome extension, and am recording pageview events on the checkout page, as well as add to cart events and pageview events on all other pages except the shop page.

    I do get a “No HTTP Response” error on your Shop page, however.

    I also cannot test the “Thank you” page, since to get there I need to make a purchase through the off-site payment gateway.

    Would it be possible for you to check the events on the Thank you page, making a recording, and then submit it to us via the WooCommerce Support Desk (generally they’re best as a PDF)?

    The ticket can be opened at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    We will be able to help you further there.

    Thread Starter Steve

    (@thewebsmiths)

    Thank you @nicw

    I’ve submitted a support request as instructed, ticket #4282500

    Did you find the issue with this?

    I seem to have a similar problem, no config changes that I recall and no code changes either.

    Thread Starter Steve

    (@thewebsmiths)

    @danhrpr

    So glad it’s not just me!

    I’ve gone back through the changelogs for every plugin we use to see what may coincide with the issue, even working out the two hour window when it recorded its last transaction and missed the next – no resolution yet ??

    Hi @thewebsmiths ,

    I was able to locate your ticket #4282500 and it looks like we did not get an update after our last reply.

    Our team member found no active problem on the logs you shared, so suggested performing a full conflict test to see if other plugins are causing the problem. You will find full details on the conflict test here.

    Also, there is a new version1.5.3 which was released 6 days ago. Can you please update and see if the problem continues?

    You can also post an issue in the WooCommerce Google Analytics Integration Githib page with your test results so that our developers can investigate further.

    @danhrpr can you please also follow the conflict test and let us know how it goes with the latest version?

    Thank you ??

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Google Analytics not showing ecommerce transactions for 1 month’ is closed to new replies.