Menu
Feedback
Start here

Known issues

Known issues
Duplicate transactions being recorded in Google Analytics
Post-purchase
ID:
Backlog
Published on11/20/2018
Last updated on12/22/2022
1 min read

Summary

Transactions are recorded in Google Analytics based on the confirmed order page (orderPlaced). When the customer reaches the page an event is sent to the Data Layer, so Google Tag Manager captures this event and triggers the Google Analytics script.

If the customer visits this page over and over again, or even if they reload/update the page, the event is triggered and the data is re-sent to Google Analytics, creating repeated information.

Simulation

  1. Complete an purchase in the store;
  2. Access the placed order page repeatedly;
  3. Note that these multiple hits have been recorded as completed orders in Google Analytics.

Workaround

There is no workaround for this type of integration.

One possibility is to avoid integrating frontend transactions with GTM/Javascript. Instead, work with a backend integration (middleware) between VTEX order APIs and the Google Analytics transaction APIs.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback