Expand my Community achievements bar.

The Analytics Community Lens news letter for February 2024 is now here! Come see upcoming events and what's been going on in the community!
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.