Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(){
- var DadosBrutos = {{sua matriz no formato ua}};
- var items = [];
- for(var i = 0; i < DadosBrutos.length;i++){
- var indice = DadosBrutos[i];
- var format_ga4 = {
- "item_id":indice.id,
- "item_name":indice.name,
- "item_category":indice.category,
- "item_brand":indice.brand,
- "price":indice.price,
- "quantity":indice.quantity
- }
- items.push(format_ga4);
- };
- return items;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement