LinkStorm needs its JavaScript snippet to load on every page so it can insert internal links. Below are three ways to do that on Shopify.
Installation
Start by going to the snippet installation page from your Dashboard:
Then, select one of the following methods.
Method 1: Editing Your Theme Code (Most Common)
This method involves adding your script directly to your theme's main layout file, which makes it load on every page of your store.
From your Shopify admin, go to Online Store > Themes.
Find the theme you want to edit, click the Actions button (the one with three dots
...
), and then select Edit code.In the code editor, open the Layout folder and click on the
theme.liquid
file.Paste your script before the closing
</head>
tag.Click Save.
Method 2: Add the snippet with Google Tag Manager
If you already use GTM, simply add a Custom HTML tag that fires on All Pages.
See the detailed steps in our dedicated guide: How to install the LinkStorm snippet with GTM.
Method 3: Using a Shopify App
If you're not comfortable editing code, using an app is the best approach. These apps provide a user-friendly interface to manage and inject scripts.
Search the Shopify App Store for "custom script," "custom code," or "header footer scripts" to find many suitable options.
Verification
Verify the snippet was successfully installed by going to the installation page and clicking on "Verify Installation." You should see these confirmations: