Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Orders tracking incremental due to page refresh

Avatar

Level 1

Hi All,

 

We are facing issues in some transactions where a user might have refreshed the page after successful payment multiple times because of which we are observing more number of orders whereas the actual orders are lesser.

 

Request someone to please suggest a resolution to this issue?

Thanks in advance, will be great help.

1 Accepted Solution

Avatar

Correct answer by
Level 10

You need to set s.purchaseID with the order ID or a similar unique value identifying the transaction. This will prevent the same transaction from being tracked multiple times.

 

Best wishes,
Andrey Osadchuk | Launch Inspector, Analytics Connector, Bookmarks

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

You need to set s.purchaseID with the order ID or a similar unique value identifying the transaction. This will prevent the same transaction from being tracked multiple times.

 

Best wishes,
Andrey Osadchuk | Launch Inspector, Analytics Connector, Bookmarks

Avatar

Level 1

Also, make sure s.purchaseID is unique and is the actual order ID (optional but important in troubleshooting).

Sometimes developers pass a random number to please analytics implementation.