Seatext library

How to Add the SeaText Snippet to Shopify (Manual Method vs Third-Party Apps)

The official SeaText documentation describes a manual integration method that edits your theme.liquid file. Some users prefer third-party apps for convenience, but these are not officially supported. This guide covers both approaches, with detailed...

Quick Answer: Two Ways to Add SeaText to Shopify

You can add the SeaText snippet by editing your theme code manually (official method) or by using a third-party code injection app. The manual method is more reliable and gives you full control. Third-party apps are easier but may have limits and are not officially endorsed by SeaText.

Comparison: Manual Method vs Third-Party App

CriteriaManual Method (Official)Third-Party App (Unofficial)
CostFreeOften free tier; paid plans available
Ease of UseRequires editing theme filesSimple paste-and-save
ControlFull control over placementLimited to header/footer injection
ReliabilityNo dependency on third-party uptimeDepends on app uptime
Snippet LimitsNo limitsMay have character or snippet count caps
Official SupportYes, from SeaTextNo; check with the vendor

Who should use the manual method? Store owners who want full control, have coding comfort, or run mission-critical stores. Who should try a third-party app? Beginners who prefer not to edit theme files, or those on a tight schedule.

Step 1: Get Your SeaText Snippet

Log in to your SeaText AI account. If you don’t have one, create an account at SeaText.com. In the dashboard, locate the integration section. Copy the JavaScript code snippet provided. This snippet is unique to your account and domain. Store it in a text file for later use.

Step 2: Manual Method (Official) – Add Snippet to Theme.Liquid

This method is described in the official SeaText documentation. It is the recommended way.

2.1 Access Your Theme Code

Go to your Shopify admin. Click Online Store > Themes. Find your active theme. Click the three dots (⫶) next to the theme and select Edit code.

2.2 Find the theme.liquid File

In the left sidebar, look for the Layout folder. Click it to expand. Open the file named theme.liquid. This file controls the overall HTML structure of your store.

2.3 Paste the Snippet

Scroll to the bottom of the file, just before the closing </body> tag. Paste your SeaText JavaScript snippet there. Do not add extra <script> tags if the snippet already includes them. A common mistake is pasting it in the <head> section – it works there too, but near the bottom ensures the page loads first.

2.4 Save Your Changes

Click the Save button at the top right. The snippet is now active on your entire store.

2.5 Verify the Installation

Visit your store’s homepage. Right-click anywhere and select View Page Source. Press Ctrl+F (or Cmd+F) and search for “seatext”. If you see the snippet, it is working. You can also use browser developer tools (F12) to check the Network tab for the script loading.

Common Pitfalls (Manual Method)

  • Missing closing tag: Ensure you paste inside the body tag, not after it.
  • Theme updates: If you update your theme, the snippet may be overwritten. Re-check after updates.
  • Multiple domains: Each SeaText account works for one primary domain. For development or staging, create a separate account. Localhost and dynamic development URLs are not supported.

Step 3: Third-Party App Method (Unofficial Workaround)

Some users prefer to use a third-party app to inject the snippet without editing theme files. Apps like Code Injector and Head Code are commonly recommended by users, but they are not officially endorsed by SeaText. For authoritative guidance, refer to the manual method above.

3.1 Choose an App

Go to the Shopify App Store and search for “code injector”. Popular options include Code Injector and Head Code. Compare features: cost, ease of use, snippet limits, and support. Most have free tiers with limited features.

3.2 Install the App

Click the app listing and install it. Follow the onboarding steps. Grant the required permissions (usually read/write to theme files).

3.3 Paste the Snippet

Open the app from your Shopify admin. Find the section for adding code to the header or footer. Paste your SeaText snippet. If the app offers a “site-wide” option, enable it. Some apps automatically wrap the code in <script> tags – if your snippet already includes them, remove the extra tags or use the app’s “raw code” option.

3.4 Save and Verify

Click Save. Then verify the snippet is loading by viewing the page source or using developer tools. If the snippet does not appear, check the app’s settings and ensure it is enabled.

Common Pitfalls (Third-Party App Method)

  • App limits: Free plans may limit snippet length or number of snippets. If your snippet is long, upgrade or switch to the manual method.
  • App downtime: If the app stops working, your snippet stops loading. For critical stores, this is risky.
  • Cache: Shopify’s cache may hide the snippet. Clear your store’s cache from the Shopify admin under Online Store > Preferences > Cache.

Selection Criteria for Third-Party Apps

If you choose the app route, consider these factors:

  • Cost: Many apps are free for basic use. Check if you need a paid plan for unlimited snippets.
  • Ease of Use: Look for a simple interface with clear fields for header/footer code.
  • Snippet Limits: Some apps cap character count. Ensure your SeaText snippet fits within the limit.
  • Support: Check reviews. The app vendor should be responsive.
  • Security: The app should have good privacy practices. Read their terms.

Remember: these apps are not officially supported by SeaText. For any issues, refer to the manual method first.

Troubleshooting

Snippet not appearing in page source

  • Double-check that you saved the changes in the theme editor or app.
  • Clear Shopify’s cache (Online Store > Preferences > Cache > Clear cache).
  • Wait a few minutes for changes to propagate.
  • Use an incognito window to avoid browser cache.

Script errors in console

  • Open browser developer tools (F12) and check the Console tab for errors. If you see a syntax error, re-copy the snippet from your SeaText account and paste it again.
  • Ensure no other scripts conflict. Try disabling other apps temporarily.

Snippet loads but SeaText agents not working

  • Verify your domain is valid (not localhost or dynamic).
  • Check that you have activated the agents in your SeaText dashboard.
  • Contact SeaText support if the issue persists.

Frequently Asked Questions

Do I need a third-party app to add SeaText to Shopify?

No. The official method is to edit your theme.liquid file manually. A third-party app is a convenience, not a requirement.

Which code injection app is best?

Code Injector and Head Code are popular. Check their features and pricing. SeaText does not endorse any specific app.

Will the snippet slow down my site?

SeaText’s snippet is lightweight and loads asynchronously. It should not affect page speed. Monitor your site’s performance after installation.

Can I use the same snippet on multiple stores?

No. Each SeaText account is linked to one primary domain. Create a separate account for each store.

What if the snippet doesn’t appear after saving?

Check the page source. If missing, clear cache and re-save. If using an app, ensure the app is enabled and the snippet is in the correct field.

How do I remove the snippet later?

For manual method, delete the code from theme.liquid and save. For app method, remove the snippet from the app’s settings and save.

Is there a cost to use the third-party app method?

Many apps have free tiers. Code Injector offers a free plan with limited snippet count. Check each app’s pricing.

Further reading and comparison sources

These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.

Learn more

Visit the website for more information.