{"section":"announcements","requestedLocale":"en","requestedSlug":"2018-09-04-changes-in-the-orderplaced-provide-more-precision-to-google-analytics-data","locale":"en","slug":"2018-09-04-changes-in-the-orderplaced-provide-more-precision-to-google-analytics-data","path":"docs/en/announcements/2018/september/2018-09-04-changes-in-the-orderplaced-provide-more-precision-to-google-analytics-data.md","branch":"main","content":"The order confirmation page (also known as orderPlaced) received a series of improvements in its data layer. The update gets rid of existing redundancies in event creation on Google Analytics.\n\n\n## What has changed\nThe orderPlaced used to create separate events for orders which had products from two or more sellers. It means that a single order could trigger several events, unnecessary multiplying the amount of data and making them less trustable.\n\nWe resolved that with an update of the __fourth version of orderPlaced__. Now, it's the orderGroup parameter that triggers the event creation on Google Analytics\n\n`transactionId`: Now it's the orderGroup.\n\n`transactionTotal`: The value is the sum of all transactions from all orders in the orderGroup.\n\n`transactionShipping`: The value is the sum of all shipping fees from the orders in the orderGroup.\n\n`transactionTax`: The value is the sum of all taxes from the orders in the orderGroup.\n\n`transactionPaymentType`: Returns a list of objects (which are the payment methods of all orders in the orderGroup) in the format below:\n```json\n{ \n       group: p.group,    \n       paymentSystemName: p.paymentSystemName,    \n       installments: p.installments,    \n       value: p.value \n}\n```\n\n`transactionShippingMethod`: Returns a list of objects (which are the shipping methods of all orders in the orderGroup) in the format below:\n```json\n{    \n        itemId: l.itemId,    \n        selectedSla: l.selectedSla,    \n}\n```\n\n`transactionProducts`: Returns the products of all orders in the orderGroup.\n\n\n## Main advantages\nThe updates are mainly intended for those scenarios where a single order has products from different sellers. Now they generate more precise data in the Google Analytics, which gives a better vision of your clients' shopping behavior.\n\n\n## What you need to do\nThis update __doesn't require__ any actions. If your store already uses the __version 4 of the orderPlaced__, which is fully compatible with the [Omnichannel](/en/announcements/shift-your-business-with-vtexs-omnichannel-experience) features, the new logic is already on.\n\n\n> ⚠️ It's an update on the **version 4 of orderPlaced only**, and it doesn't affect the behavior of previous versions."}