When integrating an app with your theme, the app developers or instructions may require code additions to the body portion of the theme.liquid.
To get started, copy the app's code snippet to your clipboard, go to your Shopify Admin and follow these steps:
Step 1: In your Online Store, go to your theme and select Actions.
Step 2: Click Edit code to access the theme files.
Step 3: Open the Layout folder, then theme.liquid.
There may be additional layout files here if you have had modifications made to your theme. Keep in mind that the default theme.liquid may not be the file to adjust if this is the case.
Step 4: In the theme.liquid file, look for the opening and closing body tags.
Opening body tag:
<body>
Closing body tag:
</body>
Step 5: The goal here is to add the copied line of code to the body, so this could be anywhere between the opening and closing tags.
<body>
[insert code here]
</body>
There will be other lines of codes between these tags, so be careful not to replace or remove any of these lines by adding the new code!