Need Help with creating a JSON Webhook

I am trying to implement a sales affiliate program on my site through Refersion. I got all the way to the header tracking code, but I don’t have access to thank you page in booking option so my only other option is to place a JSON Webhook. I have the code, but I am unsure of where to place it.

I understand there to be three places where javascript code can be placed on Wix:

  1. Page-specific code (accessed at the bottom of the editor screen)

  2. Public section (section in the Wix Code site structure)

  3. Backend (section in the Wix Code site structure)
    It’s not 100% clear to me what you’re trying to do here. Could you provide more information?

I am setting up an affiliate program on my site through a company called refersion. I was able to add the tracking code to my header, but the remaining code has to be placed on thank you page or backend.

Hi.

Please check out the following:
http://www.wix.com/code/reference/wix-http-functions.html

It might be what you are looking for.

Regards,
Genry.