I need an help in implementing facebook pixel. I have setup a basic html store. The pixel respond well to page view and purchase completion. The payment is made with stripe that redirect to my thank you page when the payment is completed. The pixel is set that the thank you page trigger the completion of the transaction. The problem is that simply refreshing that page or navigate directly to that web page and another 'purchase' event is triggered. How to avoid this and make it safe?
You didn't mention a webhook. Has a Stripe webhook been integrated into your payment process? If you're not familiar with webhooks, it will be hard to explain the concept in a forum post. Check out this implementation page: https://stripe.com/docs/webhooks