Implementing Facebook pixel

Discussion in 'Programming' started by Loque, Nov 22, 2020.

  1. #1
    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?
     
    Loque, Nov 22, 2020 IP
  2. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,274
    Likes Received:
    1,696
    Best Answers:
    31
    Trophy Points:
    475
    #2
    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
     
    qwikad.com, Nov 22, 2020 IP
  3. Loque

    Loque Member

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #3
    I created a checkout_session_completed webhook.
     
    Loque, Nov 23, 2020 IP