[Support request] Add Script to WooCommerce Thank You

Home Forums Support [Support request] Add Script to WooCommerce Thank You

Home Forums Support Add Script to WooCommerce Thank You

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #795298
    Coen

    Hi,

    I have a script that I would like to add to WooCommerce’s Thank You page (it’s for tracking conversions that came through a chat).

    I created an element, added the code, set it to wp_head but I cannot find WooCommerce’s Thank You page in the display rules… doesn’t appear to be in pages.

    Is it possible to use an element like this for my purpose? If not: how can I add that code to the Thank You page? 🙂

    Thanks for your help!

    Cheers, Coen

    #795416
    David
    Staff
    Customer Support

    Hi there,

    not sure but you could try using the woocommerce_thankyou hook.
    In the hook list you will find Custom Hook at the end of the list, select that and it will provide a field for you to add the above hook name.
    Then set the display rules to the entire site. The hook only exists in one place. Let me know.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.