victorIndexeo Posted June 27, 2023 Share Posted June 27, 2023 Buenos días, se puede atrapar un evento que cuando un cliente quite un producto del carrito poder saber los datos de ese productor para usarlos en GA4 en Concreto este evento: gtag("event", "remove_from_cart", { currency: "USD", value: 7.77, items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "ChIJIQBpAG2ahYAR_6128GcTUEo", price: 9.99, quantity: 1 } ] }); https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtag Gracias Link to comment Share on other sites More sharing options...
ExpertoPrestaShop Posted June 27, 2023 Share Posted June 27, 2023 Aquí están todos los eventos JS de Prestashop y como suscribirte a ellos: https://devdocs.prestashop-project.org/8/themes/reference/javascript-events/#dispatched-events El que buscas debe ser updateCart. Suerte. 2 Link to comment Share on other sites More sharing options...
victorIndexeo Posted June 29, 2023 Author Share Posted June 29, 2023 Muchas gracias probare, a ver si sale Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now