Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Orders tracking incremental due to page refresh

ishank_tewari
Level 1
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.

2 Replies
Andrey_Osadchuk
Community Advisor
Community Advisor

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

Samrat_Dsouza
Level 1
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.