• Resolved jwagstaff

    (@jwagstaff)


    I can’t see which products are being added to the cart in GA4. The add_to_cart events are being tracked, but item_name is Not Set.

    This is what the add_to_cart event looks like in DebugView:

    https://drive.google.com/file/d/1el7HswvC6JivdOWZO9LkJcOcLBbiO1jW/view?usp=sharing

    And this is what it looks like in the ecommerce report:

    https://drive.google.com/file/d/1IDNGCoYhK7i_01VnOfPTU6Z7eKPISn8T/view?usp=sharing

    This is the only GA tracking integration in use.

    Any idea how I resolve this?

    Thanks,

    James

    System Report:


    ### WordPress Environment ###

    WordPress address (URL): https://thewhitethorngallery.ie
    Site address (URL): https://thewhitethorngallery.ie
    WC Version: 6.9.4
    REST API Version: ? 6.9.4
    WC Blocks Version: ? 8.3.3
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0.2
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: –
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache/2.4.51 (Debian)
    PHP Version: 7.4.30
    PHP Post Max Size: 500 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.64.0
    OpenSSL/1.1.1n

    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.4.20-MariaDB-1:10.4.20+maria~buster-log
    Max Upload Size: 500 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    WC Database Version: 6.9.4
    WC Database Prefix: wp_
    Total Database Size: 104.54MB
    Database Data Size: 73.56MB
    Database Index Size: 30.98MB
    wp_woocommerce_sessions: Data: 2.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: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.09MB + Index: 0.09MB + 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
    tblArtAppLog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 1.02MB + Index: 0.47MB + 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.08MB + Index: 0.23MB + Engine InnoDB
    wp_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_bv_ip_store: Data: 0.16MB + Index: 0.14MB + Engine InnoDB
    wp_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wp_duplicator_pro_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_duplicator_pro_packages: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
    wp_ewwwio_images: Data: 10.50MB + Index: 11.09MB + Engine InnoDB
    wp_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    wp_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_e_submissions: Data: 1.52MB + Index: 1.94MB + Engine InnoDB
    wp_e_submissions_actions_log: Data: 0.27MB + Index: 0.66MB + Engine InnoDB
    wp_e_submissions_values: Data: 3.52MB + Index: 0.47MB + Engine InnoDB
    wp_giftvouchers_activity: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_giftvouchers_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_giftvouchers_setting: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_giftvouchers_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_hfcm_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo_campaign_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo_campaign_logmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo_conversions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo_email_campaignmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo_email_campaigns: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_mo_optin_campaignmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_mo_optin_campaigns: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_nextend2_image_storage: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_nextend2_section_storage: Data: 0.14MB + Index: 0.06MB + Engine InnoDB
    wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_nextend2_smartslider3_sliders: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_nextend2_smartslider3_slides: Data: 0.22MB + Index: 0.11MB + Engine InnoDB
    wp_options: Data: 4.06MB + Index: 0.14MB + Engine InnoDB
    wp_postmeta: Data: 33.52MB + Index: 10.89MB + Engine InnoDB
    wp_posts: Data: 4.50MB + Index: 2.20MB + Engine InnoDB
    wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_rank_math_analytics_objects: Data: 0.23MB + Index: 0.09MB + Engine InnoDB
    wp_rank_math_internal_links: Data: 0.22MB + Index: 0.08MB + Engine InnoDB
    wp_rank_math_internal_meta: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    wp_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_redirects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_termmeta: Data: 0.13MB + Index: 0.14MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.22MB + Index: 0.16MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_tg_item_elements: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_tg_item_skins: Data: 0.11MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.05MB + 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.02MB + 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_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.20MB + Index: 0.44MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + 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_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpml_mails: Data: 6.52MB + Index: 0.00MB + Engine InnoDB
    wp_yikes_easy_mc_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    ### Post Type Counts ###

    acf-field: 12
    acf-field-group: 3
    attachment: 4364
    boxzilla-box: 1
    custom_css: 1
    elementor_library: 18
    gift_card: 7
    mc4wp-form: 1
    nav_menu_item: 22
    page: 98
    post: 3
    postman_sent_mail: 7
    product: 1546
    revision: 349
    shop_order: 62
    shop_order_refund: 4
    the_grid: 80
    wc_afrsm: 1
    wc_afrsm_zone: 2
    wp_global_styles: 1
    wpcf7_contact_form: 1

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (32) ###

    Advanced Custom Fields: by Delicious Brains – 5.11.4
    Better Search Replace: by Delicious Brains – 1.4.1
    Blank Slate: by Aaron Reimann & Micah Wood – 1.2.1
    Boxzilla: by ibericode – 3.2.25
    Contact Form 7: by Takayuki Miyoshi – 5.6.3
    GDPR Cookie Consent: by WebToffee – 2.1.3
    Deposits & Partial Payments for WooCommerce – Pro: by Acowebs – 3.0.2
    Easy WP SMTP: by wpecommerce
    alexanderfoxc – 1.4.9

    Elementor Pro: by Elementor.com – 3.7.7
    Elementor: by Elementor.com – 3.7.8
    301 Redirects: by WebFactory Ltd – 2.72
    Essential Addons for Elementor: by WPDeveloper – 5.3.2
    EWWW Image Optimizer: by Exactly WWW – 6.6.0
    Imsanity: by Exactly WWW – 2.8.1
    Mailchimp for WooCommerce: by Mailchimp – 2.7.5
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.6
    MalCare WordPress Security Plugin – Malware Scanner, Cleaner, Security Firewall: by MalCare Security – 4.82
    Smart Slider 3 Pro: by Nextend – 3.4.1.16
    Pages with category and tag: by YAHMAN – 0.9.0
    P&W Mailchimp Integration: by James Wagstaff – 1.0
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5
    Slugs Manager: by Algoritmika Ltd – 2.6.0
    WooCommerce Stripe Gateway: by WooCommerce – 6.8.0
    WooCommerce Google Analytics Integration: by WooCommerce – 1.5.15
    Booster for WooCommerce: by Pluggabl LLC – 5.6.6
    WooCommerce Payments: by Automattic – 4.8.1
    WooCommerce PayPal Payments: by WooCommerce – 1.6.5 (update to version 1.9.3 is available)
    WooCommerce: by Automattic – 6.9.4
    WP Mail Logging: by Wysija – 1.10.4
    WPide: by XplodedThemes – 2.6
    Easy Forms for Mailchimp: by YIKES
    Inc. – 6.8.6

    YITH WooCommerce Gift Cards: by YITH – 2.13.0

    ### Inactive Plugins (8) ###

    Breeze: by Cloudways – 2.0.9
    Code Snippets: by Code Snippets Pro – 2.14.2
    Header Footer Code Manager: by 99robots – 1.1.29
    MailOptin – Lite: by MailOptin Popup Builder Team – 1.2.49.0
    My Database Admin: by wpshrike – 1.1.23
    Permalink Manager Lite: by Maciej Bis – 2.2.16
    Rank Math SEO: by Rank Math – 1.0.98.2
    Site Kit by Google: by Google – 1.84.0

    ### Must Use Plugins (2) ###

    Elementor Safe Mode: by Elementor.com – 1.0.0
    Object Cache Pro (MU): by Rhubarb Group – 1.16.1

    ### Settings ###

    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    gift-card (gift-card)
    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: –
    Enforce Approved Product Download Directories: –

    ### WC Pages ###

    Shop base: #1126 – /shop/
    Cart: #7741 – /cart-2/
    Checkout: #7733 – /checkout/
    My account: #1129 – /my-account/
    Terms and conditions: #6955 – /terms-and-conditions/

    ### Theme ###

    Name: hello-elementor-child
    Version: 1.0.0
    Author URL:
    Child Theme: ?
    Parent Theme Name: Hello Elementor
    Parent Theme Version: 2.3.0 – 2.6.1 is available
    Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    WooCommerce Support: ?

    ### Templates ###

    Overrides: –

    ### WooCommerce PayPal Payments ###

    Onboarded: ?
    Shop country code: IE
    WooCommerce currency supported: ?
    PayPal card processing available in country: –
    Pay Later messaging available in country: –
    Webhook status: ?
    Vault enabled: ?
    Logging enabled: –
    Reference Transactions: –
    Used PayPal Checkout plugin: –

    ### Admin ###

    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page

    Disabled Features: minified-js
    new-product-management-experience
    settings

    Daily Cron: ? Next scheduled: 2022-10-05 18:37:57 +00:00
    Options: ?
    Notes: 104
    Onboarding: completed

    ### WooCommerce Payments ###

    Version: 4.8.1
    Connected to WPCOM: No
    Blog ID: –
    Account ID: –

    ### Action Scheduler ###

    Complete: 947
    Oldest: 2022-09-04 10:00:07 +0000
    Newest: 2022-10-05 08:15:09 +0000

    Pending: 2
    Oldest: 2022-10-06 02:00:05 +0000
    Newest: 2022-10-06 06:49:18 +0000

    ### Status report information ###

    Generated at: 2022-10-05 08:50:17 +00:00
    `

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there @jwagstaff ??

    This is the only GA tracking integration in use.

    Any idea how I resolve this?

    Would you be able to confirm whether the following options are enabled in the settings (WooCommerce > Settings > Integration > Google Analytics):

    – Enable Universal Analytics
    – Add to Cart Events
    – Enable Enhanced eCommerce

    If any of those options is not enabled then it won’t include the JavaScript code to track the main add to cart button for the single product page.

    Here’s how you can do some further troubleshooting (direct link to forum thread here).

    Furthermore, if you are able to reproduce this under the following conditions:

    1. An unmodified, default WordPress theme such as Twenty Twenty or Storefront active.
    2. No other plugins except for WooCommerce and WooCommerce Google Analytics Integration active.

    Please do open an issue here: https://github.com/woocommerce/woocommerce-google-analytics-integration

    • This reply was modified 2 years, 1 month ago by anastas10s.
    Thread Starter jwagstaff

    (@jwagstaff)

    Thanks Pepe,

    – Enable Universal Analytics: OFF
    – Add to Cart Events: ON
    – Enable Enhanced eCommerce: ON

    I don’t seem to be able to enable UA unless I disable Global Site Tag, and that will apparently disconnect GA4 – is that right?

    Hi there @jwagstaff ??

    I don’t seem to be able to enable UA unless I disable Global Site Tag, and that will apparently disconnect GA4 – is that right?

    Yes, that is correct. Feel free to try it and let us know how it goes.

    Thread Starter jwagstaff

    (@jwagstaff)

    Aha – does that mean I can’t track add_to_cart events properly in GA4? We aren’t using UA any longer as it is being deprecated.

    Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @jwagstaff ,

    Aha – does that mean I can’t track add_to_cart events properly in GA4? We aren’t using UA any longer as it is being deprecated.

    Our development team is aware of the planned depreciation of Universal Analytics. It is due to be deprecated in July 2023 — an update would be made to the extension before that. You can follow the discussion here: https://github.com/woocommerce/woocommerce-google-analytics-integration/issues/215

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘add_to_cart parameters not being passed correctly’ is closed to new replies.