How to add a new data to gtag triggers

Created on 16 November 2023, about 1 year ago

Problem/Motivation

Hi. I have google_tag + commerce modules installed together, and I notice that this combination already add events to GTM trought gtag function.
How can I add a parameter (like send_to) directly to this object at gtag?

Example of code:
gtag("event", "add_to_cart", {
currency: "EUR",
value: "144.17",
items: [
{
item_name: "Caixa de Copos Cónicos de Papel - 5.000 unidades",
affiliation: "Culligan",
discount: "-26.96",
price: "117.21",
quantity: 2,
item_id: "CL0023905"
}
],
send_to: "G-XPTOWXYZ"
})

💬 Support request
Status

Active

Version

2.0

Component

Documentation

Created by

🇧🇷Brazil Diego_Mow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024