Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 685 Bytes

2021-12-02-track-orders-on-finish-page-using-the-order-number-as-transaction-id.md

File metadata and controls

11 lines (11 loc) · 685 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Track orders on finish page using the order number as transaction id
issue: NEXT-19166
author: Max
author_email: [email protected]
author_github: @aragon999
---

Storefront

  • Changed the Google Analytics order tracking to only track the order on the finish page instead when submitting the confirm form, such that the orders are only tracked once they are really submitted
  • Changed the transaction ID of the tracked order to be the order number instead of a random ID preventing tracking of the same order multiple times
  • Deprecated the generateUuid method in google-analytics/events/purchase.event.js, because the execute method now pulls the uuid from the template