• Resolved diegogaona

    (@diegogaona)


    Hi,

    I have some suggestion for the dataLayer data (mostly for GA4):

    For view_item_list and select_item:
    item_list_id: “example related_products”,
    item_list_name: “example Related products”,

    For view_item:
    currency: “USD”,
    value: 7.77,

    For view_cart, add_shipping_info, add_to_cart:
    itens/coupon: “SUMMER_FUN”,

    For add_payment_info, add_shipping_info, begin_checkout:
    coupon: “SUMMER_FUN”,

    Another thing, I think that the parameter paymentType in the dataLayer (event add_payment_info) would be better if it was: payment_type (GA4 default)

    The parameters are from here: https://developers.google.com/analytics/devguides/collection/ga4/reference/events

    Currently it is very good, but maybe some of this data could be useful for the users.

    Best regards, Diego

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    Thank you for your suggestions. I really appreciate it.

    ‘item_list_name’ is already implemented in some places but it is not always possible. I haven’t given up but there are lots restrictions in both WooCommerce and themes.

    I have added currency for the view_item event and it will be included in the next release.

    ‘items/coupon’ is already supported for view_cart and add_shipping_info but add_to_cart is not supported yet.

    The parameter name paymentType is mistake and I have just added ‘payment_type’

    Thread Starter diegogaona

    (@diegogaona)

    Thanks for the explanation Torben!!
    Best regards, Diego.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘dataLayer suggestion for events’ is closed to new replies.