The post_sale shortcode is used to display content one time, immediately after a sale. Typically used on the receipt page, it allows you to display a message or even javascript the first time your customer views their receipt. The syntax is:
[post_sale]
Display this content 1 time right after the sale
[/post_sale]
Or even:
[post_sale]
<script type="javascript">
do_something_to_log_sale();
</script>
[/post_sale]