Great question — answering as the UphillTech team:
Can you add more details, like the order number variable and where you want to insert. A.S. as you add these details i will edit the answer or/and add a new answer. Edit: You can't write php variables in a non-php script. If you want to add a link, i suggest sing echo like this: this is your fixed code: add_action( 'woocommerce_thankyou', 'bbloomer_conversion_tracking_thank_you_page' ); function bbloomer_conversion_tracking_thank_you_page() { $price=$order->get_total(); ?> <!-- Měřicí kód Sklik.cz --> <iframe width="119" height="22" frameborder="0" scrolling="no" src="//c.imedia.cz/checkConversion?c=100056379&color=ffffff&v=<?php echo $price ?>"></iframe> <?php }
Full answer by user11717381: https://stackoverflow.stackexchange.com/a/58247480 (CC BY-SA 4.0).
Need it done for your business? UphillTech.