GA – Enhanced Ecommerce – Product Add To Cart (Not Set)
-
Hello,
I’ve recently installed the plugin for GA, enabled all the correct settings and GA is up and running.
However in Conversions > Ecommerce and then looking at shopping behaviour and product adds to cart, it is saying the name of the product is (not set)
Interestingly it basically duplicates the product in the report, it gives the real product a product detail view but no add to carts, then the same product but calling it (not set) with no detail view but the add to cart. If I look at the SKU of both of these products, it’s the exact same.
(not set) – product detail view 0 – product add to cart 1
Actual product name – product detail view 1 – product add to cart 0Not quite sure what is going on here or how to fix it? Any suggestions.
-
Hi @connorsa2k21,
It sounds like you’re seeing some strange duplication issues after installing, activating, and setting up Google Analytics.
Could you 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.
Looking forward to hearing from you!
Hi @csmcneill
Thanks for getting back so quickly!
Here you go:
### WordPress Environment ### WordPress address (URL): Site address (URL): 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.1 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: ? WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.23 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1l-fips SUHOSIN Installed: – MySQL Version: 5.7.32-35-log Max Upload Size: 256 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: wpgy_ Total Database Size: 244.29MB Database Data Size: 195.02MB Database Index Size: 49.27MB wpgy_woocommerce_sessions: Data: 26.05MB + Index: 3.02MB + Engine InnoDB wpgy_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpgy_woocommerce_order_items: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wpgy_woocommerce_order_itemmeta: Data: 1.52MB + Index: 0.38MB + Engine InnoDB wpgy_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpgy_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_404_to_301: Data: 0.34MB + Index: 0.00MB + Engine InnoDB wpgy_actionscheduler_actions: Data: 13.02MB + Index: 8.28MB + Engine InnoDB wpgy_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_actionscheduler_logs: Data: 4.52MB + Index: 5.03MB + Engine InnoDB wpgy_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_cf7_vdata: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_cf7_vdata_entry: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wpgy_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_comments: Data: 1.52MB + Index: 0.48MB + Engine InnoDB wpgy_irecommendthis_votes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_layerslider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_layerslider_revisions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_litespeed_img_optm: Data: 3.52MB + Index: 3.00MB + Engine InnoDB wpgy_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpgy_options: Data: 23.05MB + Index: 1.17MB + Engine InnoDB wpgy_postmeta: Data: 35.55MB + Index: 18.75MB + Engine InnoDB wpgy_posts: Data: 42.39MB + Index: 2.80MB + Engine InnoDB wpgy_revslider_css: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_css_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_sliders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_sliders_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_termmeta: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wpgy_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wpgy_term_relationships: Data: 0.28MB + Index: 0.19MB + Engine InnoDB wpgy_term_taxonomy: Data: 0.11MB + Index: 0.03MB + Engine InnoDB wpgy_usermeta: Data: 1.23MB + Index: 0.47MB + Engine InnoDB wpgy_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpgy_user_registration_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wc_customer_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wpgy_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_wc_gpf_render_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wpgy_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wpgy_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_wc_product_meta_lookup: Data: 0.27MB + Index: 0.45MB + Engine InnoDB wpgy_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_wc_zapier_history: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wpgy_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpgy_wfconfig: Data: 2.28MB + Index: 0.00MB + Engine InnoDB wpgy_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wffilemods: Data: 21.55MB + Index: 0.00MB + Engine InnoDB wpgy_wfhits: Data: 0.14MB + Index: 0.05MB + Engine InnoDB wpgy_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpgy_wfknownfilelist: Data: 7.52MB + Index: 0.00MB + Engine InnoDB wpgy_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wflogins: Data: 0.19MB + Index: 0.06MB + Engine InnoDB wpgy_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpgy_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpgy_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wpgy_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_woocommerce_gpf_google_taxonomy: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_woocommerce_payment_network_wallets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpgy_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpgy_yoast_indexable: Data: 7.08MB + Index: 2.95MB + Engine InnoDB wpgy_yoast_indexable_hierarchy: Data: 0.33MB + Index: 0.41MB + Engine InnoDB wpgy_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpgy_yoast_primary_term: Data: 0.11MB + Index: 0.11MB + Engine InnoDB wpgy_yoast_seo_links: Data: 0.36MB + Index: 0.22MB + Engine InnoDB wpgy_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 2806 nav_menu_item: 76 oembed_cache: 8 page: 35 portfolio: 4 post: 35 product: 879 product_variation: 1152 revision: 354 shop_coupon: 17 shop_order: 709 shop_order_refund: 113 uncode_gallery: 6 uncodeblock: 129 user_registration: 2 wpcf7_contact_form: 16 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (25) ### 404 to 301 - Redirect, Log and Notify 404 Errors: by Joel James – 3.0.8 WooCommerce PaymentNetwork: by PaymentNetwork – 1.3 Advanced CF7 DB: by Vsourz Digital – 1.8.2 Contact Form 7: by Takayuki Miyoshi – 5.4.2 Facebook for WooCommerce: by Facebook – 2.6.4 Flexible Shipping: by WP Desk – 4.8.1 Klarna Order Management for WooCommerce: by klarna krokedil – 1.6.7 Klarna Payments for WooCommerce: by krokedil klarna automattic – 2.6.0 Facebook for WordPress: by Facebook – 3.0.6 Retainful - Abandoned Cart Recovery Emails and Next Order Coupons: by Retainful – 2.6.4 SiteGround Optimizer: by SiteGround – 5.9.6 Category Order and Taxonomy Terms Order: by Nsp-Code – 1.5.7.5 Trustpilot-reviews: by Trustpilot – 2.5.888 Uncode Core: by Undsgn – 2.4.0.3 Uncode WPBakery Page Builder: by Michael M - WPBakery.com – 6.7.0 Uncode Wireframes: by Uncode – 1.2.1 WPBakery Page Builder (Visual Composer) Clipboard: by bitorbit – 4.5.8 WooCommerce Stripe Gateway: by WooCommerce – 5.4.1 WooCommerce Google Analytics Integration: by WooCommerce – 1.5.2 WooCommerce PayPal Payments: by WooCommerce – 1.5.1 WooCommerce Google Product Feed: by Ademti Software Ltd. – 10.1.6 WooCommerce Zapier: by OM4 Software – 2.2.1 WooCommerce: by Automattic – 5.6.0 Wordfence Security: by Wordfence – 7.5.5 Yoast SEO: by Team Yoast – 17.1 ### Inactive Plugins (5) ### Advance Ecommerce Tracking Premium: by theDotstore – 3.5.2 All-in-One WP Migration: by ServMask – 7.47 All-in-One WP Migration File Extension: by ServMask Inc. – 1.8 PDF Forms Filler for CF7: by Maximum.Software – 1.3.17 WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.2 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: simple (simple) grouped (grouped) variable (variable) external (external) Taxonomies: Product Visibility: exclude-from-search (exclude-from-search) exclude-from-catalog (exclude-from-catalog) 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: #83097 - /emk-store/ Basket: #90280 - /emk-cart/ Checkout: #82601 - /checkout/ My account: #82602 - /my-account/ Terms and conditions: #83046 - /terms-and-conditions/ ### Theme ### Name: Uncode Child Version: 1.0.0 Author URL: https://www.undsgn.com Child Theme: ? Parent Theme Name: Uncode Parent Theme Version: 2.4.0.3 Parent Theme Author URL: https://www.undsgn.com WooCommerce Support: ? ### Templates ### Overrides: uncode/woocommerce/archive-product.php uncode/woocommerce/cart/cart-item-data.php uncode/woocommerce/cart/mini-cart.php uncode/woocommerce/checkout/thankyou.php uncode/woocommerce/content-product-cat.php uncode/woocommerce/content-product.php uncode/woocommerce/content-single-product.php uncode/woocommerce/global/form-login.php uncode/woocommerce/global/quantity-input.php uncode/woocommerce/loop/add-to-cart.php uncode/woocommerce/loop/loop-end.php uncode/woocommerce/loop/loop-start.php uncode/woocommerce/loop/pagination.php uncode/woocommerce/myaccount/form-edit-account.php uncode/woocommerce/myaccount/form-login.php uncode/woocommerce/myaccount/form-lost-password.php uncode/woocommerce/myaccount/form-reset-password.php uncode/woocommerce/myaccount/my-account.php uncode/woocommerce/myaccount/orders.php uncode/woocommerce/notices/error.php uncode/woocommerce/notices/notice.php uncode/woocommerce/notices/success.php uncode/woocommerce/order/order-details-customer.php uncode/woocommerce/order/order-details.php uncode/woocommerce/product-searchform.php uncode/woocommerce/single-product/add-to-cart/external.php uncode/woocommerce/single-product/add-to-cart/grouped.php uncode/woocommerce/single-product/add-to-cart/simple.php uncode/woocommerce/single-product/add-to-cart/variable.php uncode/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php uncode/woocommerce/single-product/meta.php uncode/woocommerce/single-product/price.php uncode/woocommerce/single-product/product-image.php uncode/woocommerce/single-product/product-thumbnails.php uncode/woocommerce/single-product/rating.php uncode/woocommerce/single-product/related.php uncode/woocommerce/single-product/review.php uncode/woocommerce/single-product/share.php uncode/woocommerce/single-product/tabs/additional-information.php uncode/woocommerce/single-product/tabs/description.php uncode/woocommerce/single-product/tabs/tabs.php uncode/woocommerce/single-product/up-sells.php uncode/woocommerce/single-product-reviews.php uncode/woocommerce/single-product.php uncode/woocommerce/taxonomy-product-cat.php ### WooCommerce Google Product Feed feeds ### google: Google merchant centre product feed ??Type: google ??Category filter: - ??Categories: - ### WooCommerce Google Product Feed options ### Include variations in feed: Enabled Send "item group ID": - Expanded schema markup: - Debug key: 145e3301-ea33-4530-9dca-c65f4732911d ### WooCommerce Google Product Feed fields ### Title: Pre-populates from product product_title. Product description: Main product description (full preferred) plus variation description Condition: Defaults to "new". Brand: Manufacturer Part Number (MPN): Pre-populates from product sku. Product Type: Google Product Category: Global Trade Item Number (GTIN): Size system: Availability (in stock products): Defaults to "in stock". Availability (backordered products): Defaults to "in stock". Availability (out of stock products): Defaults to "out of stock". ### Klarna Payments Request Log ### 2021-09-04 15:43:53: KP Create Session Response code: 400 Response message: {"headers":[],"body":"{\n \"error_code\" : \"BAD_VALUE\",\n \"error_messages\" : [ \"Bad value: order_lines\" ],\n \"correlation_id\" : \"e0f4accf-ab52-4ad3-87b3-8c5f3d072166\"\n}","response":{"code":400,"message":"Bad Request"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}} Correlation ID: ### WooCommerce PayPal Payments ### Onboarded: Yes Shop country code: GB PayPal card processing available in country: Yes Pay Later messaging available in country: Yes Vault enabled: Yes ### Action Scheduler ### Complete: 1,578 Oldest: 2021-08-11 13:47:34 +0100 Newest: 2021-09-11 09:34:38 +0100 Failed: 4 Oldest: 2021-09-09 13:53:40 +0100 Newest: 2021-09-09 14:01:21 +0100 Pending: 4 Oldest: 2021-09-11 11:25:50 +0100 Newest: 2021-09-13 11:15:36 +0100 ### WooCommerce Zapier ### Database Version: ? 13 Detailed Logging Enabled: No Legacy Mode Disabled: ? Yes SSL: ? Yes REST API Authentication Key(s): ? 0 Task History Record Count: ? 54 Webhook #14: Zapier #117489477 - Status: disabled - Trigger: order.created - Delivery Count (Last 30 Days): 0 Webhook #13: Zapier #115048531 - Status: active - Trigger: order.paid - Delivery Count (Last 30 Days): 54 Webhook #11: Zapier #116407720 - Status: disabled - Trigger: order.created - Delivery Count (Last 30 Days): 0 Webhook #9: Zapier #115048531 - Status: disabled - Trigger: order.paid - Delivery Count (Last 30 Days): 0 ### Status report information ### Generated at: 2021-09-11 09:47:26 +01:00
-
This reply was modified 3 years, 6 months ago by
connorsa2k21.
Hi, thanks for that. There’s nothing obvious in that system status report to explain this behavior.
I have done a bit of testing on a test site of mine using the debug version of the Google Analytics JavaScript which will provide debug messages in the JavaScript console of the browser. Doing that on a test site here: https://wctesting.tk/shop/clothing/accessories-clothing/sunglasses/ I can definitely see that the product name is sent with the add to cart event:
Link to image: https://d.pr/i/Nt7ntoAn example of that debug code can be seen here: https://github.com/WillBrubaker/hiro-ga-debug/blob/main/hiro-ga-debug.php – you could install that as a plugin if you’d like to use it to debug on your own site. given that this is not reproducible in my testing nor are there any other reports of this on our issue tracker, I am left to believe that the behavior on your site is caused by something external to WooCommerce and WooCommerce Google Analytics Integration.
If you are able to reproduce this under the following conditions:
1. An unmodified, default WordPress theme such as Twenty Twenty or [Storefront](https://www.ads-software.com/themes/storefront/) active.
2. No other plugins except for WooCommerce and WooCommerce Google Analytics Integration active.Please do let open an issue here: https://github.com/woocommerce/woocommerce-google-analytics-integration
So what I discovered was there was 2 instances of google analytics running, I fixed that now and there is only 1 instance running.
However it has not fixed the issue. Also it seems that ecommerce is not tracking orders either.
So there is a problem with products that are added to cart being registered without a name in GA.
Then the transactions are not being recorded.
HI @connorsa2k21,
It sounds like something on your site preventing the data to be passed correctly. Did you perform a full conflict check as suggested by my colleague above? If not, please do that and let us know the result.
Thanks.
I am having the same issue on my site as well.
Please open up your own thread, as each separate issue needs it’s own personal attention.
Hello @connorsa2k21,
We haven’t heard back from you for a while. I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.
Thanks.
-
This reply was modified 3 years, 6 months ago by
- The topic ‘GA – Enhanced Ecommerce – Product Add To Cart (Not Set)’ is closed to new replies.