Take the 2-minute tour ×  I am developing an analytics product
similar to Google Analytics and want to offer an integration for
our Shopify users.  I would need to do just two things:  1)
Insert our JavaScript snippet into the body of all the shop's
pages  2) Insert a second conversion snippet into the body of
only the "thank you" page after a purchase to record the sale,
passing back the order total and order number  Could you point
me in the right direction?  The ScriptTag endpoint looks optimal
except that it doesn't seem to provide any way to differentiate
between the "thank you" page and other pages, or to pass the
order details from the "thank you" page into the script.  It
seems like I either need an endpoint that can inject arbitrary
code into all pages, or one which lets me alter the theme layout
file to add code before the </body> tag.  If I can do that much,
it looks like I might be able to use a conditional in the
templating language to only show the conversion code if the URL
matches the "thank y