When integrating an app with your theme, the app developers may require code additions to the body portion of the theme.liquid. There are a few approaches to consider for completing this task.
To get started, copy the app's code snippet to your clipboard and go to your Online Store.
Locate the file
In your Online Store, go to your theme and select Actions.
Click Edit code to access the theme files.
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.
Find the body portion
In this file, look for the opening and closing tags.
Opening body tag:
<body>
Closing body tag:
</body>
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