fix
This commit is contained in:
@@ -86,6 +86,23 @@ const currency = new Intl.NumberFormat("pt-BR", {
|
||||
},
|
||||
});
|
||||
|
||||
// window.dataLayer = window.dataLayer || [];
|
||||
// function gtag(...args: any[]) {
|
||||
// window.dataLayer.push(args);
|
||||
// }
|
||||
// gtag("event", "add_to_cart", {
|
||||
// currency: "BRL",
|
||||
// value: parseFloat(unit_price),
|
||||
// items: [
|
||||
// {
|
||||
// item_id: id,
|
||||
// item_name: name,
|
||||
// price: parseFloat(unit_price),
|
||||
// quantity: 1,
|
||||
// },
|
||||
// ],
|
||||
// });
|
||||
|
||||
const r = await checkout(item);
|
||||
const json = await r.json();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user