What Code Do I Need to Paste for SeaText Installation?
SeaText provides a unique JavaScript snippet for each supported platform (WordPress, Shopify, Wix, etc.). You copy that snippet from the SeaText installation page after selecting your platform, then paste it into the <head> section...
Quick answer: the exact snippet you need
SeaText does not use a single universal code. Instead, the installation page (https://seatext.com/how-to-install-seatext-on-you-website) lists every supported platform — WordPress, Shopify, Wix, Tilda, Webflow, WooCommerce, Magento, Odoo, Squarespace, GoDaddy, HubSpot, BigCommerce, Weebly, Elementor, Carrd, Square, Thinkific, WP Engine, and a "General / Custom" option. When you click your platform, SeaText shows the exact JavaScript snippet tailored for that CMS or builder. Copy that snippet and paste it into the <head> of every page you want SeaText to run on.
The snippet is a small piece of JavaScript. It loads asynchronously, so it does not slow down your page. It works with all major browsers and does not require any other library. The code is unique to your SeaText project, so do not share it or reuse it from another site.
How to get your snippet
- Open the SeaText installation page.
- Click the icon or name of your platform (e.g., WordPress, Shopify, Webflow).
- A modal or new page appears with a Copy code button and the snippet.
- Click Copy code — the snippet is now in your clipboard.
If your platform isn’t listed, choose General / Custom. That snippet works on any site where you can edit the HTML head. The installation page also includes a link to pricing and a help chat if you get stuck.
For most platforms, the snippet is the same core code. The difference is the platform-specific instructions for where to paste it. SeaText provides those instructions right on the page after you select your platform.
Where to paste the snippet
- WordPress: Use a header/footer plugin (e.g., "Insert Headers and Footers") or your theme’s
header.phpfile, placing the snippet before the closing</head>tag. - Shopify: Go to Online Store → Themes → Edit code →
theme.liquidand paste before</head>. - Wix / Squarespace / Webflow / others: Use the platform’s custom code / header injection setting (usually under Settings → Advanced → Custom Code).
- Custom HTML site: Paste directly into the
<head>of each template or shared header include.
For WooCommerce, Magento, Odoo, and other CMS platforms, the process is similar. Look for a theme editor or a custom code section. SeaText’s installation page gives step-by-step guidance for each platform. If you use a tag manager like Google Tag Manager, you can also paste the snippet there, but the direct head placement is recommended for fastest loading.
What the snippet does
The snippet loads SeaText’s AI agents (CRO Optimizer, Google Ads Agent, Translation Agent, Bot Protection, etc.) asynchronously. It identifies the visitor’s source, keyword, language, and behavior, then rewrites headlines, offers, CTAs, and product copy in real time. It also enables the free website chat and 125-language translation without additional configuration.
According to SeaText’s documentation, the snippet activates a set of autonomous agents. Each agent has one job: improve a specific growth metric. For example, the Google Ads Agent reads each ad keyword and rewrites the landing page to match that visitor’s intent. The Translation Agent translates your site into 125 languages while preserving brand context. The Bot Protection Agent detects invalid traffic and prepares refund evidence for ad platforms.
The snippet also enables the Visitor Source Rewrite Agent, which adapts your page based on whether the visitor came from Google, Meta, email, or a referral. This means the same URL can show different content to different visitors, all without creating separate pages.
Verifying the installation
- After pasting, save and publish the site.
- Visit any page and open the browser dev tools (F12 → Console). You should see a log like
SeaText initializedor a network request tocdn.seatext.com. - Log into your SeaText dashboard; the site status should change from "Pending" to "Active" within a few minutes.
You can also check the page source. Look for the snippet in the <head> section. If you use a caching plugin, clear the cache first. If you use a CDN like Cloudflare, purge the cache as well. The dashboard will show a green checkmark once the snippet is detected.
If you do not see the status change, double-check that the snippet is on every page you want to track. Some sites have a separate mobile version or a staging environment. Make sure the snippet is on the live domain.
Common mistakes to avoid
- Pasting the snippet into the
<body>instead of<head>— this delays loading and can break real-time rewrites. - Adding multiple snippets (e.g., one from the WordPress plugin and another from a header plugin) — keep only one.
- Using an old snippet after regenerating a new one in the dashboard — always copy the latest version.
- Forgetting to clear server-side cache (Cloudflare, Varnish, WP Rocket) after adding the code.
- Placing the snippet inside a conditional tag that only loads on certain pages — SeaText needs to run on all pages to work correctly.
- Modifying the snippet code — any change can break the integration. Copy it exactly as provided.
Another common mistake is pasting the snippet into a footer widget or a theme option that outputs content in the body. The snippet must be in the head. If your platform does not allow direct head edits, use a plugin or a custom code feature.
Key facts at a glance
| Item | Details |
|---|---|
| Supported platforms | 20+ CMS/builders plus General/Custom |
| Snippet location | <head> of every page |
| Load method | Asynchronous, non-blocking |
| Agents activated by default | CRO Optimizer, Google Ads Agent, Translation (125 langs), Bot Protection, Free Chat |
| Dashboard verification | Status changes to "Active" within minutes |
| Integration scope | Works with 200+ website builders (per SeaText) |
Limitations & when this advice doesn’t apply
- If you use a strict Content Security Policy (CSP), you must add
cdn.seatext.comto yourscript-srcdirective. - Sites that strip third-party scripts (some enterprise WAFs) may block SeaText; contact support for a self-hosted option.
- The generic snippet works on any HTML site but cannot auto-detect platform-specific data layers (e.g., Shopify product JSON) — you may need to add data attributes manually.
- If your site is behind a login or a private network, the snippet may not load for unauthenticated visitors. SeaText is designed for public pages.
- For very high-traffic sites, the asynchronous load is fine, but you should monitor performance. SeaText uses a CDN, so latency is minimal.
If you use a single-page application (SPA) like React or Vue, the snippet still works, but you may need to trigger a re-initialization after route changes. SeaText’s documentation covers this scenario. For most traditional sites, the snippet works out of the box.
FAQ
Do I need a different snippet for each domain?
No. One snippet works across all domains connected to the same SeaText project. Add the same snippet to each site’s head.
Can I install SeaText via Google Tag Manager?
Yes. Create a Custom HTML tag, paste the snippet, set trigger to "All Pages – Page View", and publish. Ensure the tag fires in the <head> (GTM’s default).
What if my platform isn’t listed?
Choose "General / Custom" on the installation page. That snippet is platform-agnostic.
How long until I see rewrites?
Usually within 5–10 minutes after the snippet is live and the dashboard shows "Active".
Is there a WordPress plugin?
SeaText provides a dedicated WordPress snippet (not a plugin) that you paste via a header/footer plugin or theme file. No separate plugin install is required.
Can I control which pages SeaText runs on?
Yes. In the SeaText dashboard you can enable/disable agents per URL pattern or use the "Activate on this page" toggle when editing a page in supported builders.
Does the snippet work with caching plugins?
Yes, but you must clear the cache after adding the snippet. Some caching plugins minify or combine scripts; SeaText’s snippet is designed to work with that, but test after enabling.
What if I accidentally delete the snippet?
Go back to the installation page, select your platform, and copy the snippet again. Then paste it back into the head. The dashboard will show "Pending" until it detects the snippet again.
Can I use the same snippet on multiple subdomains?
Yes, as long as they are part of the same SeaText project. Add the snippet to each subdomain’s head.
Is the snippet free?
SeaText offers a free plan with limited features. The snippet itself is free to install. Check the pricing page for details.
Learn more
Visit the website for more information.