Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
News
Announcements
Changes in the orderPlaced provide more precision to Google Analytics data
Photo of the author
PedroAntunesCosta
Published on 9/4/2018
Last update on 12/31/2019

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.

What has changed

The 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.

We 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

transactionId: Now it's the orderGroup.

transactionTotal: The value is the sum of all transactions from all orders in the orderGroup.

transactionShipping: The value is the sum of all shipping fees from the orders in the orderGroup.

transactionTax: The value is the sum of all taxes from the orders in the orderGroup.

transactionPaymentType: Returns a list of objects (which are the payment methods of all orders in the orderGroup) in the format below:


{
group: p.group,
paymentSystemName: p.paymentSystemName,
installments: p.installments,
value: p.value
}

transactionShippingMethod: Returns a list of objects (which are the shipping methods of all orders in the orderGroup) in the format below:


{
itemId: l.itemId,
selectedSla: l.selectedSla,
}

transactionProducts: Returns the products of all orders in the orderGroup.

Main advantages

The 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.

What you need to do

This update doesn't require any actions. If your store already uses the version 4 of the orderPlaced, which is fully compatible with the Omnichannel features, the new logic is already on.

It's an update on the version 4 of orderPlaced only, and it doesn't affect the behavior of previous versions.

Was this helpful?
Yes
No
Suggest Edits (GitHub)
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback