Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
¿El artículo de comercio electrónico para el evento add_to_cart de GA4 puede tener parámetros personalizados?

Estoy tratando de implementar el evento GA4 add_to_cart para la tienda electrónica, pero el producto ya tiene los mismos parámetros para otros servicios, pero están usando nombres diferentes, ¿puede cambiar el nombre del parámetro del artículo para GA4?

¿O hay alguna forma mejor de no tener valores duplicados?

Estructura de artículos de comercio electrónico GA4:

 items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", currency: "USD", item_brand: "Google", item_category: "Apparel", price: 9.99, quantity: 1 } ]

Mi estructura:

 items: [ { id: "SKU_12345", name: "Stan and Friends Tee", brand: "Google", category: "Apparel", item_id: "SKU_12345", item_name: "Stan and Friends Tee", item_brand: "Google", affiliation: "Google Merchandise Store", currency: "USD", price: 9.99, quantity: 1 } ]
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Creo que puedes crear una variable de JavaScript personalizada en tu GTM. ingrese la descripción de la imagen aquí

Aquí está el código

 function(){ var yourItem = {{DLV-items}} var ga4Item = yourItem.map(function(o){ return { item_id: o.id, item_name: o.name, affiliation:o.affiliation, currency: o.currency, item_brand: o.item_brand, item_category: o.category, price: o.price, quantity: o.quantity } }) return ga4Item; }

Y el resultado en la vista previa de GTM será

ingrese la descripción de la imagen aquí

El azul es tu artículo original. El rojo es el elemento modificado que puedes usar en GA4

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!