1. Copy the snippet from your widget's settings page

2. Go to your Shopify admin page and open up the Online Store section in the sidebar

3. Under Actions click Edit code

4. Paste the snippet into the HTML

Open up your layout file, and paste the snippet before the closing </head> tag. If you have multiple layouts, repeat this for all of them.