Go to Setup -> Conversions and create a new conversion specifying the name and the price.

This will generate a conversion tag ( $conversion-tag )

Locate your thank you page and add the following script

Save and publish it to the web.

For adding dynamic conversions with name and price, add the following properties:

orderName: either order number ( Order 51522 ) or product name
orderPrice: either order price or product price