• Resolved kattouf

    (@kattouf)


    Hello,

    Anything we can do to prevent duplication of tracking on the thankyou. In even to refreshes/ direct reloads?

    thanks

    /j

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Adam Heckler

    (@adamkheckler)

    Could you please send me a copy of your site’s system status report? You can find it under WooCommerce > Status in the dashboard. Click “Get system report” and then the “Copy for support” button. Once you’ve done that, paste it into your reply.

    It’s possible you might have two different plugins including the tracking code on the thank you page, which could cause Google to track it twice. The best way to find out if this is the cause is to conflict test.

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce and our Google Analytics Integration
    • Check out with a test order and see if it’s tracked twice

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.

    To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    You can find a more detailed explanation on how to do a conflict test here.

    Thread Starter kattouf

    (@kattouf)

    Thank you for reply.

    It was only happening for a single order and stopped now.. I think the user bookmarked the thankyou page and kept checking it or left it open.

    Normally orders are tracked once. So it’s not a conflict with other plugins.

    I googled and apparently Analytics does NOT ignore duplicates

    Does this plugin ignore such cases? how does it handle refreshing the thankyou page?

    thanks
    /J

    Plugin Support Adam Heckler

    (@adamkheckler)

    Does this plugin ignore such cases? how does it handle refreshing the thankyou page?

    Our plugin only tracks each order once. When it’s tracked the order the first time, it sets a flag on the order so that it won’t be tracked again. The code is here:

    https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/1.5.1/includes/class-wc-google-analytics.php#L407-L408

    And here’s where we check for that postmeta before tracking again:

    https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/1.5.1/includes/class-wc-google-analytics.php#L363

    Hope that helps! ?? I will go ahead and mark this thread as resolved.

    Thread Starter kattouf

    (@kattouf)

    Hello,

    It happened again today, just had a sale and it was registered 3 times.

    I have since first post added a firewall rule at cloudflare to prevent direct access to the order-received page. I thought that would help but today i saw the tripple entry at analytics.

    It’s rare but annoying as you can imagine

    Screen shot: https://ibb.co/JB7nRvv

    Bellow report if it helps.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.mydomain.com.com
    Site address (URL): https://www.mydomain.com.com
    WC Version: 5.4.1
    REST API Version: ? 5.4.1
    WC Blocks Version: ? 5.1.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 2.3.1
    Log Directory Writable: ?
    WP Version: 5.7.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.29
    PHP Version: 7.4.20
    PHP Post Max Size: 20 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 10000
    cURL Version: 7.58.0
    OpenSSL/1.1.1j
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.34-0ubuntu0.18.04.1
    Max Upload Size: 20 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.4.1
    WC Database Prefix: wp_
    Total Database Size: 191.09MB
    Database Data Size: 150.33MB
    Database Index Size: 40.76MB
    wp_woocommerce_sessions: Data: 9.02MB + Index: 0.30MB + 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: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.27MB + Index: 0.30MB + 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: 5.02MB + Index: 3.00MB + 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: 4.02MB + Index: 3.27MB + Engine InnoDB
    wp_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_cartflows_ca_cart_abandonment: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    wp_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_commentmeta: Data: 1.50MB + Index: 0.61MB + Engine InnoDB
    wp_comments: Data: 1.50MB + Index: 0.44MB + Engine InnoDB
    wp_commercekit_waitlist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commercekit_wishlist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commercekit_wishlist_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_liker: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_liker_cache: Data: 0.03MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 12.08MB + Index: 1.58MB + Engine InnoDB
    wp_postmeta: Data: 60.52MB + Index: 15.91MB + Engine InnoDB
    wp_posts: Data: 16.50MB + Index: 4.67MB + Engine InnoDB
    wp_redirection_404: Data: 1.02MB + Index: 0.13MB + Engine InnoDB
    wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_sfa_abandoned_carts: Data: 0.39MB + Index: 0.00MB + Engine InnoDB
    wp_statistics_exclusions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_statistics_historical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_statistics_pages: Data: 0.06MB + Index: 0.17MB + Engine InnoDB
    wp_statistics_search: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wp_statistics_useronline: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_statistics_visit: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_statistics_visitor: Data: 0.13MB + Index: 0.14MB + Engine InnoDB
    wp_statistics_visitor_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_termmeta: Data: 0.42MB + Index: 0.53MB + Engine InnoDB
    wp_terms: Data: 0.13MB + Index: 0.13MB + Engine InnoDB
    wp_term_relationships: Data: 0.17MB + Index: 0.13MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.14MB + Index: 0.19MB + Engine InnoDB
    wp_usermeta: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_vi_wad_ali_orders_info: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_vi_wad_ali_shipping_info: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_vi_wad_error_product_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_vi_woo_orders_tracking_track_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wcpdf_credit_note_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + 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: 0.02MB + Index: 0.03MB + 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: 0.05MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 1.48MB + Index: 0.86MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    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_wotv_woo_track_info: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpml_mails: Data: 23.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcaf_affiliates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcaf_clicks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcaf_commissions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcaf_commission_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcaf_payments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcaf_payment_commission: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcaf_payment_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_indexable: Data: 9.52MB + Index: 6.20MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 1.52MB + Index: 0.72MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.17MB + Index: 0.09MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 8037
    custom_css: 3
    customize_changeset: 18
    elementor_library: 3
    mc4wp-form: 1
    nav_menu_item: 26
    notificationx: 1
    oembed_cache: 7
    page: 11
    post: 2
    product: 253
    product_variation: 4297
    product-feed: 1
    revision: 432
    shop_coupon: 82
    shop_order: 143
    shop_order_refund: 3
    vi_wad_draft_product: 386
    wc_order_email: 1
    wc_order_status: 8
    wp_block: 1
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (41) ###
    
    Auto Image Attributes From Filename With Bulk Updater: by Arun Basil Lal – 1.6
    Autoptimize: by Frank Goossens (futtta) – 2.8.4
    Bulk remove posts from category: by MasterNs – 3.2
    CommerceGurus Commercekit: by CommerceGurus – 1.2.7
    Conversion Tracking for Bing in WooCommerce: by Worcester Web Studio – 1.0.7.2
    Counter Visitor for Woocommerce: by TaxarPro – 1.2.1
    Disable Cart Fragments: by Optimocha – 2.0
    Elementor: by Elementor.com – 3.2.4
    Facebook for WooCommerce: by Facebook – 2.6.0
    Heartbeat Control by WP Rocket: by WP Rocket – 2.0
    Kadence WooCommerce Email Designer: by Kadence WP – 1.4.7
    Kirki Customizer Framework: by David Vongries – 3.1.6
    Liker: by Merkulove – 2.0.4
    Metric Converter: by Vitaly Kukin – 1.5.4
    Product GTIN (EAN, UPC, ISBN) for WooCommerce: by Emanuela Castorina – 1.1.1
    Redirection: by John Godley – 5.1.1
    Shortcode For Current Date: by Imtiaz Rayhan – 2.1.4
    Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.56
    
    Abandoned Cart Reports For WooCommerce: by Small Fish Analytics – 2.6.2
    Bulk Assign Linked Products For WooCommerce: by vinod vaswani – 1.0
    WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.12
    Notification for WooCommerce: by Andy Ha (villatheme.com) – 1.2.3.8
    Orders Tracking for WooCommerce: by VillaTheme – 1.1.8.5
    Product Feed PRO for WooCommerce: by AdTribes.io – 10.2.7
    Thank You Page Customizer for WooCommerce: by VillaTheme – 1.0.5.9
    Aliexpress Dropshipping and Fulfillment for WooCommerce: by VillaTheme(villatheme.com) – 1.0.3.1
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.1
    WooCommerce Conversion Tracking: by woopt – 1.10.6
    WooCommerce Google Analytics Integration: by WooCommerce – 1.5.1
    WooCommerce Order Status Manager: by SkyVerge – 1.13.1
    WooCommerce Orders Tracking Premium: by VillaTheme – 1.0.7
    WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.9.0
    WooCommerce PDF Invoices & Packing Slips Professional: by Ewout Fernhout – 2.7.4
    WooCommerce Photo Reviews Premium: by VillaTheme – 1.1.5.0
    WooCommerce: by Automattic – 5.4.1
    Yoast SEO: by Team Yoast – 16.4
    WP File Manager: by mndpsingh287 – 7.1.1
    WP Mail Logging: by MailPoet – 1.9.7
    WP Mail SMTP: by WPForms – 2.8.0
    WPForms Lite: by WPForms – 1.6.7
    
    ### Inactive Plugins (5) ###
    
    Better Search Replace: by Delicious Brains – 1.3.4
    File Manager Advanced: by modalweb – 3.9
    WooCommerce Pricing & Discounts!: by Lagudi Domenico – 13.3
    WooCommerce Smart Coupons: by StoreApps – 4.15.0
    WooCommerce Stripe Gateway: by WooCommerce – 5.2.3
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: USD ($)
    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-catalog (exclude-from-catalog-2)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2
     (rated-2)
    rated-2 (rated-2-2)
    rated-3
     (rated-3)
    rated-3 (rated-3-2)
    rated-4
     (rated-4)
    rated-4 (rated-4-2)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #6 - /shop/
    Cart: #7 - /cart/
    Checkout: #8 - /checkout/
    My account: #9 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Shoptimizer Child Theme
    Version: 1.2.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Shoptimizer
    Parent Theme Version: 2.4.3
    Parent Theme Author URL: https://www.commercegurus.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: shoptimizer-child-theme/woocommerce/single-product/add-to-cart/simple.php
    shoptimizer-child-theme/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    shoptimizer-child-theme/woocommerce/single-product/tabs/description.php
    
    ### Action Scheduler ###
    
    Complete: 4,293
    Oldest: 2021-05-13 23:55:39 +0300
    Newest: 2021-06-13 23:32:57 +0300
    
    Failed: 5,330
    Oldest: 2021-04-27 00:53:08 +0300
    Newest: 2021-05-09 23:08:54 +0300
    
    Pending: 5
    Oldest: 2021-06-14 07:57:46 +0300
    Newest: 2021-06-20 02:37:54 +0300
    
    ### Status report information ###
    
    Generated at: 2021-06-13 23:53:14 +03:00
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duplicate transaction id tracking’ is closed to new replies.