How do I correctly add a Conversion Tracking Pixel to my checkout page?

I am trying to add the following script to my checkout page, but I am unsure of what variables to use for the line items.

Could somebody assist?