Archived topic
Add Script to WooCommerce Thank You
1 reply · Started by Coen on January 29, 2019
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
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.