When integrating an app with your theme, the app developers or instructions may require code additions to the head portion of the theme.liquid.
First, locate the file, find the head portion, then paste your app code to complete this task.
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 head portion
In this file, look for the opening and closing tags.
Opening head tag:
<head>
Closing head tag:
</head>
The goal here is to add the copied line of code to the head tag, so this could be anywhere between the two tags.
Paste your app code
To avoid any conflict with other codes in the head, add your code just before the closing head tag:
[insert code here]
</head>
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