• Resolved dmcca

    (@dmcca)


    Hi there,

    I believe the “GA4 container template” provided on the ‘how to’ article below is missing a required parameter. For some ecommerce events, GA4 requires either an item_id or an item_name. When a required parameter is missing, GA4 ignores the event completely as if it never happened. I recommend adding at least one of these as variables, and then adding the variables to the ecommerce tag.

    variable name = Ecommerce Item ID & Data Layer Variable Name = ecommerce.item_id
    variable name = Ecommerce Item Name & Data Layer Variable Name = ecommerce.item_name
    then
    Event parameter = item_id & Value = {{Ecommerce Item ID}}
    Event parameter = item_name & Value = {{Ecommerce Item Name}}

    https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking-google-analytics-4-ga4-version

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dmcca

    (@dmcca)

    I’m mistaken. The “items array” contains all the item data required, so there’s no need to do what I recommended. I’m sorry for any confusion this may have caused.

    I’ve got to admit though, I’m still concerned there’s an issue somewhere. The parameter names for an items array for GA4 are different than the parameter names for an items array for UA enhanced ecommerce. For example, EE id and GA4 item_id

    In the GTM4WP plugin’s settings at Integration > WooCommerce, there are two options, but I wonder if there ought to be a third. The two options are:
    – Track classic e-commerce, and
    – Track enhanced e-commerce.

    Should there also be an option for the following?
    – Track GA4 e-commerce

    Otherwise the GTM4WP plugin wouldn’t know to generate dataLayer pushes with the items array in the format that GA4 accepts.

    • This reply was modified 2 years, 5 months ago by dmcca.

    Hey,

    Don’t know if you’ll see this, but how did you resolve the issue of the parameters not showing in GA4?

    Do I need to add additional parameters to the GTM event with variables that pull the item_name from the items array?

    Any help would be appreciated.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘missing GA4 ecommerce parameter’ is closed to new replies.