See how this page can help with your next step.
Direct Answer: The Seatext Wix integration is a JavaScript snippet you paste into Wix Custom Code to connect your Wix site to your SEATEXT AI account. It lets you activate Seatext's AI agents for translation, conversion optimization, ad landing page matching, and more. You need a paid Wix plan because Wix requires it for custom code.
The Seatext Wix integration is a small JavaScript snippet you paste into Wix’s Custom Code area. It links your Wix site to your SEATEXT AI account so you can activate Seatext’s AI agents—translation, conversion optimization, ad landing page matching, and more—directly on your site. The code stays inactive until you turn on an agent, and you need a paid Wix plan because Wix only allows custom code on paid plans.
At its core, this integration is a connection layer. It does not change your site by itself. It places Seatext’s JavaScript on every page so the AI agents you activate in the Main AI Hub can read and respond to visitor behavior.
After the code is installed, you can activate agents such as Website Translation (125 Langs) to translate the entire site, Google Ads Landing Page AI to rewrite landing pages for each ad keyword, or AI CRO Reading Analysis to study how visitors read and suggest copy. The specific agents available are listed in your SEATEXT dashboard.
This integration does not replace your Wix editor and it does not require you to move your site. It is simply the first step that makes Seatext’s agents available on your Wix domain.
Wix’s editor is convenient, but it can feel closed when you want to add advanced AI features. The Seatext snippet is a single entry point. Paste it once, and you can later activate different agents without editing your theme again.
Here are situations where this integration fits:
These are capabilities listed on Seatext’s site, not a promise of specific results for your store.
The code goes into the Head section of your Wix site. That means it loads on every page, not just the homepage. Seatext then uses your real domain to associate traffic with your SEATEXT account.
Because each SEATEXT account is linked to a single primary URL, the script knows which account should receive the data. This is also why localhost and dynamic development domains can cause problems—Seatext may not be able to reliably match traffic to your account.
The installation itself is secure. The AI remains inert until you activate it, so your content is not modified during setup.
Installing the code is only the first step. Go to the Main AI Hub and activate the AI you want on your preferred pages. Click Configuration to adjust the AI parameters.
Until you activate an agent, the installed code stays inert. That means no AI copy changes, no translation, and no personalization will happen by accident. You control what turns on.
| Fact | Detail |
|---|---|
| What it is | JavaScript snippet added to Wix Custom Code |
| Plan requirement | Paid Wix plan required for custom code |
| Where it loads | All pages, with load on each new page |
| Activation status | AI stays inert until you activate agents |
| Domain rule | One SEATEXT account per primary URL |
| Verification | Refresh site, stay 40 seconds, wait 5 minutes |
Yes. Wix restricts custom code to paid plans. The Seatext integration is installed through Wix Custom Code, so a paid plan is required.
No. The code remains inert until activated. You choose and activate agents in the Main AI Hub.
No. Each SEATEXT account is linked to a single primary URL. Create a separate account for each website.
Localhost is restricted for security reasons. Dynamic development domains may not work reliably. Use a valid, real domain.
Visit or refresh your site several times and stay for at least 40 seconds. Wait five minutes. Your website name should appear next to the SEATEXT logo. If it does not appear after 10 minutes, contact support.
Go to the Main AI Hub, activate the AI agents you need on your preferred pages, and use Configuration to adjust their parameters.
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Direct Answer: Learn the simplest way to install SeaText across all Squarespace pages using global Code Injection, understand how the AI activates, and see what to check after setup.
You do not need to add SeaText to each page individually. Squarespace provides a global Code Injection tool that applies custom scripts to your entire website at once. This is the most efficient way to ensure your AI agents are active on every URL.
Once the script loads, SeaText remains inert until a visitor interacts with the site. After about 40 seconds of active browsing, the script establishes a secure handshake with SeaText servers and links the domain to your account.
When the handshake succeeds, you see your website name appear next to the SeaText logo in the dashboard. At that moment, the platform deploys its autonomous AI agents: Conversion, Translation, Bot Refund, Google Ads, AI SEO, and others.
These agents operate at the edge, modifying page elements in real time without touching your source code. They can rewrite headlines, translate content, detect bot clicks, and send purchase signals to Meta and Google CAPI.
Placing the script in the Header loads it early in the page lifecycle, which can shorten the time before SeaText becomes active. However, some themes may delay execution if the header contains blocking resources.
Footer injection loads the script after the main content, reducing the chance of interfering with above‑the‑fold rendering. The activation timer still starts when the script executes, so the 40‑second activity window begins slightly later.
For most Squarespace sites, either location works fine. Choose Header if you want the earliest possible start; choose Footer if you prioritize initial render speed.
After saving the code, visit your website and refresh the page several times. Stay on the page for at least 40 seconds to allow the AI to activate and link to your account.
Wait at least five minutes, then check your SeaText dashboard; you should see your website name displayed next to the SeaText logo. If it does not appear after 10 minutes, contact support for assistance.
You can also open the browser console and look for a SeaText log entry confirming successful initialization.
Using the global header or footer injection ensures consistency across all current and future pages. If you were to add the code manually to individual pages, you would risk missing new pages as you build your site.
A global approach means every new page you create automatically inherits the SeaText functionality, keeping your conversion agents and translation tools active without extra work.
This reduces maintenance overhead and guarantees that AI‑driven optimizations apply uniformly, which is essential for accurate analytics and consistent user experience.
| Feature | Requirement/Detail |
|---|---|
| Account Scope | One SeaText account is required per primary website URL. |
| Development URLs | Localhost and dynamic development domains are restricted for security. |
| Activation Time | Requires 40 seconds of active browsing to link the site to your account. |
| Installation Location | Squarespace Developer Tools > Code Injection > Header or Footer. |
| Agent Deployment | After activation, SeaText launches autonomous AI agents that work in real time. |
| Impact on Load Time | The script is served from edge locations and adds minimal latency, typically under 15 ms. |
Development URLs such as localhost or preview domains cannot be used because SeaText ties the script to a verified, public domain for security.
If you need to test on a staging subdomain, you must create a separate SeaText account for that subdomain, as each account links to a single primary URL.
The activation timer starts only when a visitor actively browses the site; leaving the page open without interaction does not count toward the 40‑second requirement.
Multi‑domain setups require one SeaText account per domain; you cannot reuse a single account across different top‑level domains.
Although the script is lightweight, extremely old browsers may delay execution; however, SeaText falls back gracefully and does not break page functionality.
The most common error is failing to wait for the initial handshake between your site and the SeaText servers. Because the AI remains inert until activated, you must spend time on the site after installation to trigger the connection.
Another mistake is using a temporary or "localhost" domain, which will not function correctly with the security protocols in place.
Some users place the script in both Header and Footer, causing duplicate execution; this is unnecessary and may slightly increase load time.
Finally, forgetting to republish the site after saving the Code Injection settings prevents the script from being served to visitors.
Why do I not see my site in the dashboard after installation? Verify that you have published the site, waited at least five minutes, and refreshed the page several times while staying active for 40 seconds.
Does SeaText slow down my site? The script loads asynchronously from edge nodes and adds negligible latency; most users report no perceptible impact on load times.
Can I use SeaText on multiple domains? Yes, but you must create a separate SeaText account for each primary domain; each account is tied to a single URL.
What if I need to change the injection location later? Simply edit the Code Injection setting, move the snippet to Header or Footer, save, and republish; the change takes effect immediately.
How does SeaText handle multi‑language sites? The Translation Agent can translate every page into up to 125 languages without additional code, operating at the edge for zero‑ms latency.
Is there a limit to the number of pages? No, the global injection applies to an unlimited number of pages under the same domain.
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Direct Answer: SeaText uses its Translation Agent to automatically translate your entire website into 125 languages while preserving brand context and optimizing localized copy for conversion. The process requires no manual localization project and includes performance tracking by language and market.
SeaText localizes your pages using its Translation Agent, an AI-powered tool that automatically translates your entire website into up to 125 languages. Unlike traditional localization, it does not require a manual project, translation files, or engineering resources. The agent preserves your brand context and optimizes translated copy so visitors in new markets can understand your product and convert effectively.
This process works by detecting visitor language and geography, then serving the appropriate localized version of your page with adapted headlines, buttons, offers, and CTAs. Everything stays SEO-ready, and you can track performance by language and market from a single dashboard.
Before activating the Translation Agent, your site needs to meet a few basic conditions. These are minimal requirements designed to get the agent up and running quickly.
If your source content is vague or uses placeholder copy, the agent's output may be less effective. Clear, complete source material leads to better translations.
| Criteria | SeaText Translation Agent | Who It Fits |
|---|---|---|
| Languages supported | 125 languages | Teams targeting many markets at once |
| Brand context preservation | Yes — maintains brand voice and messaging intent | Brands with consistent tone across markets |
| Conversion optimization | Yes — copy adapted for conversion, not just translated | Ecommerce and SaaS with revenue goals |
| Setup time | Under 1 minute | Teams without engineering resources |
| Manual localization project needed | No — fully automated | Teams that need speed over manual control |
| SEO-ready pages | Yes — each version is indexable per market | Businesses relying on organic search growth |
Check with the vendor for details on specific competitor offerings, pricing tiers, or feature comparisons.
SeaText's Translation Agent does not rely on static translation files or external CMS plugins. Instead, it processes your live site in real time, extracting translatable elements and applying AI-driven translation that adapts to context. The agent uses your brand's tone and product messaging as anchors to avoid literal, awkward translations that could hurt trust or conversion.
When a visitor arrives from a specific region or language setting, the agent serves the pre-translated, optimized version of your page. This happens instantly — there is no delay or flicker — and the URL structure remains clean, supporting proper indexing by search engines.
The agent can detect and translate content loaded via JavaScript, frameworks, or AJAX, as long as it appears in the DOM. This means dynamic content and JavaScript-generated text are covered without additional configuration.
SeaText offers different approaches to translation depending on your scope and goals. Each option has trade-offs to consider before choosing.
For most businesses, full-site translation delivers the best results because it ensures every visitor touchpoint is localized. Selective translation works if you are testing a specific market or have limited engineering bandwidth for initial rollout.
A U.S.-based SaaS company wants to launch in Germany and France. Using SeaText, they translate their pricing page, product tours, and CTAs into German and French. The agent adapts phrases like "Start free trial" to regionally preferred CTAs and adjusts date formats, numbers, and trust badges locally. Within weeks, they see localized traffic increase and conversion rates rise by 22% in German-speaking visitors.
This scenario works well because the company did not need to hire translators, set up translation workflows, or modify their site's code. The entire rollout happened in days rather than months.
An online retailer sells products worldwide. SeaText translates product descriptions, size guides, and return policies into Japanese, Spanish, and Arabic. The agent ensures that promotional offers align with local holidays and shopping behaviors. After launch, international conversion rates grow by 40%, and bounce rates drop as visitors understand the offer in their native language.
The retailer benefits from the agent's ability to adapt not just language but also cultural context — such as adjusting product imagery references, currency formatting, and seasonal promotions to match each market's expectations.
A B2B software company targets South Korea and Singapore. They activate translation for their documentation, feature pages, and demo request flows. The agent adapts technical terminology to regional preferences and ensures that call-to-action language matches how business buyers in those markets phrase purchase decisions. The company tracks performance separately for Korean and English-speaking visitors to measure market-specific ROI.
SeaText's Translation Agent is powerful, but it has clear limitations. Understanding these helps you decide when to use it and when to supplement it with other approaches.
Deployment takes under one minute — you add a single script tag or use a CDN integration. The agent begins scanning and translating your site immediately after activation. Full translation of a standard site typically completes within hours.
No — SeaText generates SEO-ready pages for each language. It supports proper hreflang signaling through your site's existing setup and ensures each localized version is indexable and unique, helping you rank in local search results.
Yes — you can enable or disable specific languages from the SeaText dashboard. You are not required to activate all 125 languages. You can start with your top target markets and expand later as traffic and revenue data justifies additional languages.
SeaText does not import external translation files. If you have existing translations, you would need to replace them with SeaText's versions to benefit from real-time optimization and performance tracking. Running dual systems is not recommended.
Yes — the agent scans your live rendered page, so it can detect and translate content loaded via JavaScript, frameworks, or AJAX, as long as it appears in the DOM.
The Translation Agent adapts localized copy to match regional conventions, including currency symbols, date formats, and number formatting. This ensures visitors in each market see familiar formats, reducing friction during checkout or sign-up.
According to SeaText data, clients see an average of 60% more international customers and 42% growth in localized sales after launching localized pages. Over 1 million pages have been localized across client sites, each with SEO-ready markup for its market.
If you rely only on your source-language site for international visitors, you risk high bounce rates, low engagement, and poor conversion. Users cannot understand your offer, trust your brand, or complete actions in an unfamiliar language. Even if your product is strong, language friction blocks revenue.
SeaText removes that barrier by making your site feel native to each market. This turns international traffic into qualified leads and customers without the cost and delay of traditional localization projects. For businesses that depend on global traffic — whether from paid ads, organic search, or referral sources — localization is not optional. It is a direct revenue lever.
The key difference between SeaText and traditional localization is speed and automation. Traditional projects can take months, require translators, and need ongoing maintenance. SeaText automates the entire pipeline, from extraction to deployment to performance tracking, in a single system.
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Direct Answer: Test your Seatext integration by saving the JavaScript snippet in theme.liquid, wrapping product descriptions with the required data- attribute, then previewing a product page to confirm the description displays correctly and the attribute appears in the HTML source via browser developer tools.
Seatext is a JavaScript integration for Shopify. The AI stays inert until you activate an agent. This protects your website content (S1). It also means a broken integration can fail silently.
The integration depends on two code changes. First, the JavaScript snippet must be in theme.liquid. Second, the product description must be wrapped with the required data- attribute. The Seatext script uses that attribute to find content it can process (S1).
If the attribute is missing, the script may load but have nothing to act on. Product descriptions will not be optimized. Translation, CRO, SEO, and other agents will not work as expected. A structured test catches this before you activate any agent.
Testing also confirms your domain is linked correctly. Each Seatext account is linked to a single primary URL. If the domain does not match, the script may not associate traffic with your account (S1).
You do not need to change product copy during testing. You only need the wrapper around the product description output.
Do not skip the preview step. The preview catches layout problems that the source check cannot.
A successful test has four signals.
Remember that the AI stays inert until activated. Seeing no content changes during testing is normal. The test is about wiring, not copy output (S1).
Use a separate Seatext account for each domain. Each account is linked to one primary URL. If you test on staging with one account and then try to use the same account on production, the script will not associate correctly (S1).
Updating a theme can replace theme.liquid and product templates. Reinstall the snippet, rewrap the description, and run the full test again.
This testing procedure assumes a standard Shopify theme with server-rendered product templates. It applies to the integration method described in the Seatext Shopify guide: adding the snippet to theme.liquid and wrapping the product description output (S1).
If your setup falls outside these cases, check with the vendor for the current integration requirements.
| Fact | Detail | Source |
|---|---|---|
| Installation method | Paste the JavaScript snippet into theme.liquid in the Layout folder | S1 |
| Product description wrapper | Add the required data- attribute around the product description output in the product template | S1 |
| Domain restriction | Each Seatext account links to one primary URL; localhost and dynamic development domains are restricted | S1 |
| Multiple domains | Use a separate Seatext account for each domain, including development and production | S1 |
| Verification step | Preview a product page and confirm the data- attribute is present in the HTML source using browser developer tools | S1 |
| Script behavior | AI remains inert until activated, preserving website content integrity | S1 |
Use a real domain. Seatext restricts localhost, and dynamic development domains may not work because Seatext may not be able to reliably associate traffic with your account (S1). A preview URL that changes often is risky.
The script loads but cannot identify the product description content. AI agents will not know what to optimize. Product descriptions stay unchanged.
Complete the integration test first. Then activate an agent in your Seatext account. The AI remains inert until activated, so changes appear only after activation (S1). Revisit the page and check the agent output.
Yes. Each primary URL needs its own account. A staging domain and a production domain are separate domains (S1).
Reapply both code changes. Re-paste the snippet in theme.liquid and re-wrap the product description output. Then rerun the full test.
Inspect the Liquid change you made. An unclosed tag, missing quote, or nested wrapper can break the template output. Revert the wrapper, save, and add it again carefully.
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Direct Answer: Duplicate accounts, stale signals, and fragmented taxonomies wreck match accuracy. Run this repeatable seven-step hygiene audit and schedule the fixes.
Match accuracy rarely dies in the model. It dies in the feed.
You inherit a buyer intent pipeline that scored well in the pilot, then watch precision slide for six weeks while the ML team blames features and sales blames the vendor. Nine times out of ten the raw data is the culprit: duplicate accounts, dead signals still carrying full weight, half-empty firmographic fields, timestamps pulled from three different timezones.
Match accuracy measures how well a predicted account-signal pair fits your ideal buyer definition. Feed that measurement garbage and you get confident garbage back. No hyperparameter sweep repairs a duplicate-heavy account table.
Start with an uncomfortable question. When did anyone last profile the raw intent feed field by field? Most teams cannot answer. They can name the vendor, the endpoint, and roughly how many rows land per day. Ask about null rates on employee count and the room goes quiet.
That silence is the problem. Hygiene is unglamorous, repeatable work: profile, normalize, dedupe, age out, re-validate. Do it on a schedule and accuracy stabilizes. Skip it and you rebuild the same dashboard every quarter with a new vendor logo on it.
Clean is not the same as zero nulls. Clean means six properties hold at once.
Duplication is the quiet killer. If one enterprise account shows up as six rows, the model learns that account's behavior matters six times more than it does. Scores inflate, routing breaks, and reps stop trusting the queue within two weeks.
Audit a fixed snapshot, never a moving target. Pause enrichment jobs, export the raw table, and record the export timestamp. Auditing a live feed means chasing rows that mutate mid-analysis and burning two days reconciling phantom deltas.
Size the sample properly. Ten thousand accounts with at least one intent event in the last 90 days is a reasonable floor. Smaller pulls hide duplicate clusters and mask regional skew.
Profile first, act second. For each column compute null rate, distinct count, the top 20 values, min and max dates, and a format-violation count against a regex you define up front. That single pass tells you where the real damage sits.
Watch for specific patterns. Employee count stored as free text (500-1000, ~750, 750 employees) breaks numeric scoring. Region fields with mixed casing and abbreviations fragment aggregation. Timestamps in local time with no offset shift intent windows by hours, which matters when recency is scored at daily granularity.
Decide your grain first. Account level or contact level? Most B2B intent scoring works at the account grain with contact rows rolled up. Mixing grains in one table recreates the inflated-score problem above and hides it from every downstream dashboard.
Build a match key hierarchy. Normalized domain (lowercase, strip www, strip trailing slash, resolve common redirects) is the strongest company signal. Fall back to normalized name plus country plus size band, then to fuzzy name matching behind a high similarity threshold.
Set that fuzzy threshold deliberately. Loose thresholds merge genuinely different companies that share a name stem. Apex Systems and Apex System are usually the same buyer. Apex Systems and Apex Systems Group might not be. Log every fuzzy merge and hand-sample fifty before you trust the rule in production.
Intent decays. It does not decay at one speed, and treating every signal as equally fresh is a leading cause of over-scoring. A page view from yesterday and a topic surge from four months ago do not belong in the same bucket without weighting.
| Intent signal type | Practical freshness window | Suggested refresh cadence | What breaks when stale |
|---|---|---|---|
| First-party site and product page activity | 7 to 30 days | Daily | Live buyers drop out of the top of the queue |
| Search and keyword intent surges | 30 to 60 days | Weekly | Research-stage accounts get underweighted |
| Third-party content consumption | 60 to 90 days | Weekly to biweekly | Old research keeps inflating scores |
| Firmographic enrichment | 90 to 180 days | Monthly | Size and industry bands drift, segments misclassify |
| Contact and role validation | Around 90 days | Monthly | The score routes to a dead inbox |
| Technographic stack data | 6 to 12 months | Quarterly | Displacement signals misfire |
One taxonomy, or none of this works. Industry codes should map to a single standard, whether that is NAICS, SIC, or your internal set. Pick one, write the mapping table, and version it so you can explain last quarter's numbers.
The same rule applies to size bands, region, and topic labels. When vendor A sends Software, vendor B sends Enterprise Software, and your internal set says SaaS, your topic features split three ways and each one looks weak to the model. That is a hygiene bug, not a signal problem.
Pull 200 accounts the sales team actually worked. Label them won, lost, or never-a-fit. Compare those outcomes against the intent scores your pipeline assigned. If high-scoring accounts do not convert above baseline, either the labels or the features are wrong, and the hygiene work you have already done lets you tell which.
Check for label leakage too. When a qualified tag gets applied after a rep reads the intent score, you are training the model on its own prediction.
A one-time audit is archaeology. Convert each check into a scheduled test that fails loudly: null rate above threshold, duplicate rate above threshold, freshness lag above threshold, taxonomy values outside the approved list. Name an owner. Weekly for freshness and duplicates, monthly for firmographic revalidation, quarterly for taxonomy review.
| Issue | Detection threshold | Effect on match accuracy | Fix order |
|---|---|---|---|
| Duplicate account clusters | Above 2% of accounts | High, inflates every score | 1 |
| Freshness lag | Median signal age above 45 days | High, misranks active buyers | 2 |
| Null critical fields | Above 15% on employee count or industry | Medium to high | 3 |
| Taxonomy fragmentation | More than 5 variants per category | Medium | 4 |
| Format violations | Above 1% of rows | Low to medium | 5 |
Aggressive hygiene destroys signal. Three patterns to avoid.
Do not delete every record with a missing firmographic field. A blank employee count is not the same as a worthless record. Impute where you can, flag where you cannot, and let the model learn from missingness instead of pretending it never happens.
Do not collapse entities using a fuzzy threshold nobody validated. Merge errors are unrecoverable downstream, and they masquerade as accuracy gains at first because row counts drop.
Do not round timestamps to month level just to simplify joins. That throws away the recency information separating a live buyer from a dormant one.
For the complete overview, see our primary guide on Troubleshooting Low Match Accuracy in AI-Based Buyer Intent Matching.
Data hygiene is maintenance, not a project. Weekly automated tests catch duplicates and freshness drift. Monthly revalidation corrects firmographics and contact roles. Quarterly taxonomy review stops new vendors and new product lines from fragmenting your categories. Write the cadence down, assign one owner, and hold the pipeline to it.
Ready to stop guessing? Run Our Brand's free intent data health check or contact our support team for a guided data hygiene audit.
Run the full seven-step audit once a quarter and automate the fast checks in between. Duplicate and freshness tests belong on a weekly schedule because they drift fastest. Firmographic revalidation and taxonomy review can run monthly and quarterly respectively.
Usually no. Deleting rows with a blank employee count or industry removes real intent activity along with the missing attribute. Impute what you can from a trusted source, flag the rest, and let the model treat missingness as information rather than erasing the account.
Yes, and it is usually the highest-use fix available. Duplicates multiply a single account's signal weight, which inflates scores, distorts ranking, and breaks territory routing. Collapsing to one row per buying entity usually moves accuracy more than any model change you can make in the same sprint.
Check the age distribution of your signals before you touch the model. If the median signal age is over 45 days, or if recent high-intent accounts score below older low-intent accounts, freshness is your problem. If fresh signals rank correctly but the score thresholds do not map to conversion rates, that is calibration.
Set thresholds per field based on how much the model depends on it. Fields that drive scoring, such as employee count, industry, and region, should stay under roughly 15% null. Secondary attributes can tolerate 30% to 40% if they are flagged and consistently missing rather than randomly absent.
Direct Answer: Subdirectory hreflang fails on return tags, x-default, and vague locales. Use absolute URLs, reciprocal links, and Search Console validation before launch.
Subdirectories consolidate authority. That is the upside. The downside is that every locale shares one host, one canonical graph, and one crawl budget. Hreflang becomes the only machine-readable instruction that tells Google which URL should appear for a French searcher, a French-Canadian searcher, or an English-speaking user outside your regional targets. Get it wrong and Google does not always throw a loud error. It picks a URL. Often the wrong one.
For the complete overview, see our primary guide on ccTLD vs Subdomain vs Subdirectory: Choosing the Right International URL Structure.
I treat hreflang as a reciprocal contract. Every URL in a language-region set must name every alternate, including itself. One missing return tag and the cluster can fall apart. This guide covers the implementation details the pillar only name-checks.
Hreflang is not a redirect. It is a hint. Google still decides which URL ranks. Your job is to remove ambiguity. For each locale page, the head or sitemap should declare the full set of alternates. Each alternate must be a 200-status, indexable, canonical URL. Each alternate must link back. That return link is where most teams fail.
Use language codes alone when the page serves all speakers of that language. Use language plus region when content, pricing, legal terms, or inventory differs by market. A page at example.com/fr/ might target French speakers broadly with hreflang="fr". A page at example.com/fr-ca/ should usually use hreflang="fr-CA". Do not invent codes. en-UK is wrong. en-GB is correct. pt-BR and pt-PT are different targets, not spelling variants.
x-default is the fallback. It tells Google which page to serve when no language-region annotation matches. Point it at a global selector, a default English page, or a page that genuinely works for unmatched users. Do not point x-default at your French page because France is your biggest market. That is a common and expensive mistake.
Three surfaces work. Pick one primary method per cluster. Mixing methods without discipline creates conflicting annotations.
| Method | Best fit | Main risk | Validation check |
|---|---|---|---|
| HTML head tags | Small to mid-size locale sets, marketing pages | Template drift and missing self-reference | Full cluster on every page, absolute URLs, return tags, one x-default |
| XML sitemap hreflang | Large catalogs and CMS-driven sites with clean sitemap generation | Sitemap and page canonicals disagree | Only 200-status canonical URLs, sitemap entries match the live cluster |
| HTTP Link headers | PDFs, non-HTML assets, app routes | Invisible to many audit tools | Header survives CDN, no conflict with HTML, return links present |
For a 5-locale marketing site, HTML head tags are fine. For a 40-locale catalog with 200,000 URLs, sitemap hreflang is more maintainable. For PDFs and non-HTML assets, HTTP headers are the practical option. The method matters less than consistency.
Here is the pattern I expect in the head of https://example.com/en/ for a simple three-locale cluster. Every page in the cluster carries the same set, with its own URL in the self-referential entry.
<link rel="alternate" hreflang="en" href="https://example.com/en/" />
<link rel="alternate" hreflang="en-gb" href="https://example.com/en-gb/" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />
Use absolute URLs. Use the final canonical host. Do not rely on relative paths, and do not mix http and https. If your CDN rewrites hostnames, validate what the crawler receives, not what your template says. The x-default URL above must also reference the cluster. If it does not, the fallback is one-way and weaker than it should be.
Page A points to Page B. Page B does not point to Page A. Google may ignore the pair. This is the most common failure I see in subdirectory setups because teams add a new locale and update only the new page. Fix the entire cluster in one release. Automate the matrix so a missing return tag fails the build.
Hreflang expects absolute URLs. A relative href like /fr/ forces Google to guess the host. A mismatch between www and non-www, or http and https, splits the cluster. Normalize one canonical host and one protocol. Then use that exact origin in every annotation.
Each page must include an alternate pointing to itself. That self-reference confirms cluster membership. Without it, Google can still process the set, but you make validation harder and increase the chance of a missing return link. Include the self tag on every locale page, including x-default if it is part of the set.
Multiple x-default values on one page break the fallback. An x-default that points to a region-specific page can send unmatched users to the wrong market. An x-default that is not reciprocal weakens the cluster. Keep one x-default per cluster, point it at a real fallback, and include it in the return graph.
Use ISO 639-1 language codes and ISO 3166-1 Alpha 2 region codes. en-UK is not valid. en-GB is. zh-Hans is a script subtag, not a region. If you need script variants, use the correct BCP 47 form. Do not use hreflang="en" and hreflang="en-US" on the same page unless they point to different URLs. Duplicate values with different targets are contradictory instructions.
A page that hreflang points to must be canonical to itself. If /fr/ canonicalizes to /en/, the hreflang entry is pointing at a URL that does not want to be indexed as the French target. That is a direct conflict. The same applies to noindex tags, robots.txt blocks, and 3xx redirects. Clean the canonical layer first, then add hreflang.
If the sitemap lists https://example.com/fr but the page redirects to https://example.com/fr/, the annotation points at a redirect. If the head uses the trailing slash and the sitemap uses the non-slash version, you have two clusters. Pick one URL format per locale. Lock it in the CMS, sitemap generator, canonical tag, and hreflang output. Redirect chains are not a substitute for clean annotations.
Build the hreflang matrix in a spreadsheet before you touch templates. One row per URL. One column per locale. Mark self-references, return links, x-default, canonical, status code, and indexability. If the matrix has holes, the markup will have holes.
Google does not hand you a tidy hreflang error report anymore. If you wait for a warning, you will launch blind.
Search Console URL Inspection is a sanity check, not a full hreflang validator. Use it to confirm indexability and canonical selection. Use crawler exports and log files for the reciprocal graph. The CTA below covers the matrix audit and return-value validation if you want a second set of eyes before release.
Subdirectories share one domain, so a single bad canonical rule can collapse the entire cluster. Watch for CMS templates that canonicalize every locale to the default language. Watch for sitemap generators that include only the default locale. Watch for language selectors that redirect users based on IP or browser language. Googlebot may never see the French page if a redirect fires before the crawler can evaluate the hreflang tag.
Keep locale prefixes distinct. /fr/ and /fr-ca/ are separate clusters, not nested folders. If your CMS creates /fr-ca/ inside /fr/, confirm that the parent page does not canonicalize or hreflang to the child by accident. Also check pagination, filters, and tracking parameters. A hreflang target with a query string is a different URL from the clean canonical page.
If you are moving from subdomains to subdirectories, pair this implementation with the companion risk plan, Migrating from Subdomains to Subdirectories Without Losing Rankings: A Step-by-Step Risk Plan. Update the hreflang matrix during the migration, not after. Old subdomain URLs should redirect to the new subdirectory URLs with a single hop, and the new cluster must be reciprocal from day one.
Before launch: Have Our Brand's engineering team audit your hreflang matrix and return-value validation before you launch.
Yes. A subdirectory does not automatically tell Google which locale to serve. Hreflang makes the language-region relationship explicit. Without it, Google can still infer language from content, but it may choose the wrong regional page for search results.
Yes. Sitemap hreflang works well for large sites. Use one primary method per cluster. Do not publish conflicting sets in both the head and the sitemap unless you have a strict generation process that keeps them identical.
No. It is optional. Use it when you have a global fallback or a language selector page. If you add it, include it on every page in the cluster and make sure the fallback URL references the cluster back.
Google may ignore the affected pair or the whole cluster. The result is usually a wrong locale in search results, not a manual penalty. Fix the return graph before you worry about anything else.
One for every alternate in the cluster, including itself and x-default if used. There is no hard limit, but head bloat becomes real at scale. For dozens of locales and thousands of URLs, move the annotations to the sitemap.
Direct Answer: ccTLDs (example.fr) send the strongest geo-targeting signal but require most resources; subdomains (fr.example.com) are easier to set up but weaker for local trust; subdirectories (example.com/fr/) consolidate authority but need explicit hreflang and Search Console geo-targeting.
ccTLDs (example.fr) send the strongest geo-targeting signal but require most resources; subdomains (fr.example.com) are easier to set up but weaker for local trust; subdirectories (example.com/fr/) consolidate authority but need explicit hreflang and Search Console geo-targeting.
| Criterion | ccTLD | Subdomain | Subdirectory |
|---|---|---|---|
| Geo‑targeting strength | Strongest – domain extension is a clear country signal | Weak – treated as separate hostname, less local trust | Moderate – relies on hreflang and Search Console settings |
| Setup effort | High – register each domain, configure DNS, hosting | Low – create subdomain in DNS, point to same server | Low – add folder or path, no extra DNS |
| Maintenance cost | High – separate renewals, SSL, hosting per domain | Medium – shared hosting, separate SSL if needed | Low – single domain, single SSL, shared resources |
| Authority pooling | None – each domain builds its own authority | Partial – root domain authority shared, but subdomain treated separately | Full – all pages share one domain authority |
| Technical requirements | Separate Search Console properties, hreflang per domain | Separate Search Console property per subdomain, hreflang across hostnames | Single Search Console property, hreflang across paths, geo‑targeting in Search Console |
| Recommendation: Choose ccTLD if you have budget for multiple domains and need strongest local signal; choose subdirectory if you want to consolidate authority and can implement hreflang correctly; choose subdomain for quick launch when resources are limited. | |||
An international URL structure organizes web addresses so search engines and users can identify the target country or language. The three common patterns are country‑code top‑level domains (ccTLD), subdomains, and subdirectories.
Evaluate five factors before choosing: geo‑targeting strength, setup effort, ongoing maintenance cost, authority pooling, and technical requirements such as hreflang and Search Console configuration.
Each target country gets its own domain, for example example.de for Germany. The domain extension tells Google the content is intended for that country. Setup steps: register the ccTLD, set up DNS, provision hosting or a CDN, install SSL, create a separate Search Console property, add hreflang tags linking each language version. Common pitfalls: forgetting to renew each domain, missing hreflang on cross‑domain pages, duplicate content across ccTLDs. Cost estimate: $10‑$30 per domain per year plus hosting. Real‑world scenario: a global brand with local legal entities in France, Germany, and Japan uses example.fr, example.de, example.jp to meet compliance and gain maximum local trust.
A subdomain places the language or country code before the root domain, like fr.example.com. The root domain retains most authority, but Google treats each subdomain as a separate host. Setup steps: create a DNS A or CNAME record for each subdomain, point to the same or different server, configure virtual hosts, add a Search Console property for each subdomain, implement hreflang across subdomains. Common pitfalls: treating subdomains as fully independent sites, neglecting hreflang, inconsistent internal linking. Cost estimate: minimal extra DNS cost; hosting shared. Real‑world scenario: a startup launches a French version quickly at fr.example.com while keeping the main site on example.com.
A subdirectory adds a path after the root domain, such as example.com/fr/. All content shares one domain authority. Setup steps: create language folders in the CMS, configure URL rewriting, add hreflang tags in the head of each page, set geo‑targeting in a single Search Console property for each language folder. Common pitfalls: missing hreflang, incorrect language codes, failing to set geo‑targeting in Search Console. Cost estimate: no extra domain cost; only development time. Real‑world scenario: an e‑commerce site serves 12 languages under example.com/en/, example.com/de/, example.com/ja/ to keep link equity consolidated.
Moving from ccTLD to subdirectory: 301‑redirect each ccTLD page to the new subdirectory URL, update hreflang to point to new paths, submit change of address in Search Console for each ccTLD, keep old domains alive for at least 6 months. Moving from subdomain to subdirectory: 301‑redirect subdomain URLs to subdirectory paths, consolidate Search Console properties, update internal links and sitemaps. Moving from subdirectory to ccTLD: register new ccTLDs, 301‑redirect each subdirectory page, set up separate Search Console properties, add hreflang across new domains. Common pitfalls: missing redirects, losing hreflang consistency, not updating sitemaps. Cost estimate: developer time plus possible temporary traffic dip of 5‑15%.
Choose a ccTLD if you have the budget to manage multiple domains and want the strongest local signal. Choose a subdomain if you need a quick launch and can accept a weaker geo cue. Choose a subdirectory if you prefer to keep all authority in one domain and can implement hreflang correctly.
This guidance assumes Google is the primary search engine and that you can edit DNS or server configuration. It does not cover cases where legal restrictions require a specific domain type, or where non‑Google search engines dominate.
<link rel="alternate" hreflang="x-default" href="https://example.com/" /> tag on every page.<link rel="alternate" hreflang="fr" href="https://example.com/fr/page" /> and the reciprocal tags on the French page.ccTLDs need separate domain renewals ($10‑$30/year each), separate SSL certificates, and possibly separate hosting. Subdomains share hosting and SSL but may need separate DNS records. Subdirectories need no extra domains or SSL beyond the root domain; cost is mainly development time for hreflang and content management.
Re‑evaluate if you enter a market with legal domain requirements, if analytics show users landing on the wrong language version, or if maintenance overhead exceeds budget.
Implementing hreflang tags and managing multilingual content across any of these structures is simplified with SeaText's WordPress translation agent, which automatically translates pages into 125 languages and keeps new content synchronized.
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Note: Core SEO claims in this article are based on industry‑standard knowledge and the external references above; the source pack does not contain specific technical guidance on URL structures.
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Direct Answer: AI A/B testing results are often delayed by testing too many variables simultaneously, failing to define clear goals, or stopping tests before they gather enough data. These errors prevent the model from reaching statistical significance and learning patterns.
AI A/B testing accelerates conversion rate optimization, but several common mistakes can extend testing duration and produce unreliable outcomes. Understanding these pitfalls helps teams design more efficient experiments and achieve meaningful results faster.
When multiple elements change at once - such as headline, image, and button color - the AI model struggles to isolate which specific adjustment drove any observed shift in user behavior. This phenomenon, known as the interaction effect, creates statistical noise that masks the true cause of performance changes. The model must process complex combinations of changes, which exponentially increases the time required to reach a clear winner. To mitigate this, focus on testing one major hypothesis per iteration. If structural changes are needed, stabilize the layout first, then use AI to refine copy and micro-interactions. This focused approach allows the model to attribute results confidently and reach significance faster.
AI models optimize exactly what they are told. If the primary goal is set to "time on page," the algorithm may favor versions that keep users reading but prevent purchases. This misalignment leads to results that look positive on engagement metrics but fail to improve revenue. Teams must define one primary conversion goal - such as form signups, product purchases, or button clicks - before starting any test. Secondary metrics like scroll depth can provide useful context, but the AI's optimization focus should remain narrowly on the chosen conversion event. This clarity ensures the algorithm consistently pushes toward the most valuable business outcome.
A classic mistake involves checking results prematurely and stopping a test because one variant appears ahead. AI models need a baseline period to account for natural traffic fluctuations, seasonal patterns, and random variance. Stopping early captures temporary streaks of luck rather than lasting behavioral shifts. Before launching any experiment, establish a pre-defined sample size or duration limit. Allow the AI to run until statistical significance is achieved, typically measured by a confidence interval (e.g., 95%). This practice prevents chasing false positives that disappear once the test concludes.
AI A/B testing relies on pattern recognition from sufficient data samples. Websites receiving only ten visitors per day will require months for the AI to gather enough information to make a decisive conclusion. This is not a tool failure but a fundamental limitation of data-driven decision making. For low-traffic sites, narrow the testing scope to high-converting landing pages or critical funnels. Concentrating data on pages with existing visitor volume allows the model to reach decision thresholds much faster than testing the entire site simultaneously.
User behavior fluctuates based on day of week, time of year, and external events. A test variant that performs well on a Tuesday may underperform on a Saturday. If tests are interrupted or run without accounting for these cycles, results become skewed and unreliable. Ensure experiments run through complete business cycles, typically a minimum of seven days. This approach captures the full spectrum of user types that visit throughout a normal week, allowing the AI to learn patterns that reflect the entire audience rather than a subset.
If tracking scripts load slowly or get blocked by browser extensions, the AI receives incomplete data about user interactions. This "signal loss" means the model makes decisions based on a partial view of the audience, delaying significance and potentially leading to incorrect conclusions. Use lightweight tracking scripts that do not slow page load times. Ensure every user interaction is captured cleanly by testing across major browsers and devices. A clean data stream is the fastest path to accurate, actionable testing results.
Low traffic volume or testing too many variables simultaneously are the most common culprits. The AI requires enough data points to prove a result is real and not random noise.
No. Stopping early often leads to false results. Always wait for the test to reach statistical significance before making decisions.
Start with one clear goal, such as a form signup, and ensure tracking scripts are working perfectly before activating the AI.
Yes, but focus on high-converting pages to ensure the AI gathers enough data to make a decision in a reasonable timeframe.
Statistical significance tells you the result is unlikely due to chance. Practical significance asks whether the observed improvement is large enough to matter for your business goals.
SeaText addresses each of these common mistakes through automated setup and continuous optimization. The platform's point-and-click interface allows teams to define primary conversion goals in seconds, eliminating the risk of vague or misaligned objectives. SeaText's multivariate testing capabilities let users test multiple variables while the AI manages interaction effects, automatically isolating which changes drive performance. The platform enforces minimum sample sizes before declaring winners, preventing premature stopping. For low-traffic sites, SeaText enables focused testing on high-intent pages and offers selective traffic exposure, starting with 5% or 10% of visitors before expanding confidence. Built-in brand guardrails ensure variants stay within approved messaging, and lightweight tracking scripts preserve data integrity by minimizing signal loss. By handling the technical setup and statistical monitoring, SeaText allows teams to focus on strategy rather than troubleshooting test duration.
Faster tests provide quicker insights but may lack the data depth to capture subtle user preferences. Slower tests with larger sample sizes reveal more nuanced patterns but delay implementation. For high-traffic e-commerce sites, prioritize accuracy with longer test durations. For content sites or B2B platforms with fewer visitors, balance speed and accuracy by focusing on high-impact changes and accepting slightly wider confidence intervals.
A retail site with 50,000 monthly visitors tests a new product description and button color. With ample data, the AI can test multiple variables simultaneously and reach significance in 7 - 14 days. The team sees a 12% revenue lift from the winning variant.
AI A/B testing is not a silver bullet. It requires sufficient data to function effectively, and very low-traffic sites may still need extended periods. The model can only optimize based on the goals and constraints it is given; if those are misaligned with business objectives, results will be misdirected. Additionally, AI models may miss qualitative factors such as brand sentiment or user trust that are not captured in conversion data. Teams should use AI testing as one tool among many, complementing qualitative user research and business judgment.
Statistical significance does not guarantee business impact. Evaluate the size of the lift against your revenue and growth goals before implementing the change.
It is possible, but results may be confounded. Best practice is to complete one test before starting another, or use AI platforms that can isolate test groups effectively.
A/B testing is better when you need definitive answers and have time to wait for significance. Multi-armed bandit is ideal when you want to maximize conversions during the test period, as it dynamically shifts traffic to better-performing variants.
Poor user experience - such as slow page loads or confusing layouts - can mask the true effect of your changes. Ensure the baseline experience is solid before testing variations.
Yes, but mobile testing requires consideration of app version fragmentation, device capabilities, and network conditions. Use platform-specific tools that account for these variables.
Learn more - Continue to the relevant page on the client website.
Direct Answer: Common mistakes include placing the script in the body tag instead of the head, duplicating code through multiple plugins, using expired project IDs, and enabling aggressive optimization tools like Rocket-Loader without proper exclusions.
Adding SeaText JavaScript to Elementor is a straightforward process, but small technical errors can prevent translations from working correctly. The most frequent mistake is placing the snippet in the <body> tag rather than the <head>, which can stop the script from initializing before the page content loads. Additionally, users often duplicate scripts by using both a custom code plugin and Elementor settings, leading to console errors and performance lag.
To ensure your site reflects real-time optimizations and localizations, you must follow the specific placement rules and verify that no caching plugins are interfering with the script execution. This guide identifies the common pitfalls and provides the step-by-step fix for a seamless integration.
The SeaText script needs to be present in the header of your website to ensure it executes early enough to intercept the page content. If you place the code in the footer or a body-specific widget, the browser may render the original text before the translation engine can swap it. This results in 'flicker,' " users see the wrong language for a split second. In Elementor, always use the designated 'Header' section of your integration plugin rather than an HTML widget placed inside a specific page layout.
Many WordPress users accidentally add the SeaText snippet multiple times. This happens when a user installs a general 'Headers and Footers' plugin but also manually pastes the code into Elementor's custom code area. Duplicate scripts cause the browser to run the initialization logic twice, often leading to JavaScript errors in the browser console. Check your active plugins list to ensure only one instance of the SeaText code is active.
The SeaText snippet relies on a unique project ID to connect your website to your dashboard. Using an expired ID or an ID copied from a different project will cause the script to fail silently. Always verify that the ID copied directly from your SeaText dashboard matches the one in your WordPress settings.
Performance optimization plugins like Cloudflare's Rocket-Loader can delay JavaScript to improve speed. While this sounds beneficial, it can break the script by delaying it until user interaction. If you use these tools, you must exclude the SeaText script URL.
SeaText accounts are often linked to specific URLs. A common mistake is attempting to use a production script on localhost. For security and tracking accuracy, the script may not function. If you are testing on multiple environments, you should separate accounts.
WordPress caching plugins (like WP Rocket or W3 Total Cache) may serve an old version of your site that does not include the script. Without clearing these, the browser continues to load cached HTML which lacks the SeaText logic.
If your script is not working, you must verify if it is actually loading. The most effective way to do this is using the browser's Developer Tools. Press F12 (or right-click and select 'Inspect') to open the panel. This tool allows you to see exactly what the browser is doing behind the scenes regarding script execution.
First, check the Console tab. This is where JavaScript reports errors. If the script is failing, you will likely see red text. A common error is ReferenceError: SeaText is not defined. This usually means another script tried to run before the SeaText library finished loading, or the script was blocked by an extension.
Next, move to the Network tab and refresh the page. Use the filter box to type 'SeaText'. Look for the file name associated with the script. If you see a 404 status, the file path is wrong. If you see a 403, a firewall or security plugin is blocking the request. If the status is 200 (OK), the script is successfully fetched from the server.
Many WordPress sites use plugins like WP Rocket or Cloudflare Rocket-Loader to speed up the site. These tools work by changing the execution order of JavaScript. They often 'defer' scripts until after the user scrolls or clicks to improve 'Time to Interactive' scores.
SeaText needs to execute early to scan the HTML content before the user sees it. If Rocket-Loader delays the script, the browser displays the original language first. When the script finally runs, it replaces the text, causing a jarring visual jump. To fix this, you must find the 'Exclusions' settings in your optimization plugin and add the SeaText script URL to the whitelist so it runs normally.
Sometimes the issue is not in Elementor, but in your hosting environment. High-security plugins like Wordfence or Sucuri may flag external script calls as potentially threats. If your server blocks the outbound request to the SeaText domains, the script will never initialize.
Check your security plugin logs for blocked IP addresses. If you see blocked requests related to SeaText, you must whitelist the domain in your firewall settings. Additionally, ensure your server-level firewall (Web Application Firewall) is not stripping out script tags from your HTML output.
Below are examples of what a failure looks like versus a successful setup in the browser console.
Failed Initialization (The Error):
Uncaught ReferenceError: SeaText is not defined at (index.js:45:12)
Successful Initialization (The Success):
SeaText engine initialized successfully for Project ID: 12345-ABCDE
| Criteria | Best Practice | Takeaway |
|---|---|---|
| Placement | <head> section | Prevents flicker and ensures early execution. |
| Method | Use 'Insert Headers and Footers' | Avoids manual HTML errors in Elementor. |
| Environment | Live production domain | Localhost/staging require separate IDs. |
| Optimization | Exclude from Rocket-Loader | Prevents the script from being delayed. |
| Verification | Wait 5-10 minutes | Dashboard needs time to show the connection. |
To ensure a perfect setup, follow this logic:
It usually takes 5 to 10 minutes for the connection to register. If it doesn't appear, check if your project ID is correct or if a caching plugin is blocking the script.
While possible, it is not recommended. Using a plugin like 'Insert Headers and Footers' is safer because it ensures the script is placed in the global header across all pages without manual page editing.
The script is designed to run at the edge with minimal impact. However, duplicating the script or having conflicts with other optimization tools can affect performance.
Yes, if you are using a development domain and a production domain, you should create separate accounts for each to maintain accurate data and security protocols.
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Direct Answer: Tune temperature first for variance, top-p for accuracy, and top-k last for hard limits. Match the order to the symptom, not to copied defaults.
Temperature, top-p, and top-k all shape the same probability distribution, but they do different jobs. Tune temperature first for most production changes. Then adjust top-p to cut rare junk without killing useful variation. Treat top-k as a hard cap, not a quality knob. Use it when your runtime, latency budget, or low-VRAM setup needs a fixed candidate count.
That order sounds simple. It breaks when teams copy defaults from a model card, change three sliders at once, and then blame the model for bad output. The comparison below gives you a working decision path.
Temperature scales the logits before sampling. Low values sharpen the distribution and push the model toward its highest-probability token. High values flatten the distribution and give lower-probability tokens more room. Temperature changes the shape of the whole distribution. It does not remove candidates, and it does not enforce a hard cutoff.
Use temperature when the output is too rigid or too random across the board. If every answer reads like a template, raise it a little. If the model keeps inventing facts, lower it. Start with small moves. A jump from 0.2 to 0.9 is not a tuning step. It is a different operating mode.
Top-p, also called nucleus sampling, keeps the smallest set of tokens whose cumulative probability reaches p. Then it samples from that set. A top-p of 0.9 keeps the tokens that make up 90 percent of the probability mass. The candidate set changes per token. That dynamic cutoff is why top-p often feels smarter than top-k on open-ended tasks.
Use top-p when the output has good structure but occasional bad tokens. Lowering top-p removes the long tail. Raising it restores variety. Do not set top-p to 0.1 and expect temperature to fix creativity. You removed the candidates first.
Top-k keeps the k highest-probability tokens and discards the rest. It is a fixed count. Top-k of 50 means 50 candidates at every step, even when the model is confident and even when the distribution is flat. That bluntness is useful for hard limits. It is a poor first choice for quality tuning.
Top-k works well when you need predictable compute, when a runtime has a sampler chain that expects a cap, or when a model produces obvious junk from a long tail. Top-k of 40 to 100 is a common range. Values below 20 can make output repetitive. Values above 200 often do little that top-p cannot do better.
Tune temperature first for most text, chat, and summarization workloads. It gives you the clearest signal. The output either becomes more deterministic or more varied, and you can see that change in a small eval set. Temperature is also the easiest parameter to explain to stakeholders.
Tune top-p first when the failure mode is sporadic junk. Suppose the answer is coherent, follows the format, and then inserts a strange phrase once every twenty responses. That is a tail problem. Temperature may make it worse. A modest top-p reduction is the cleaner fix. This is common in extraction, support replies, and structured output.
Tune top-k first only in narrow cases. You have a hard latency target. Your runtime only exposes top-k. You are running a small model on a low-VRAM GPU and need to cap candidate work. Or you have already tuned temperature and top-p and still see tail junk that top-p does not remove. Even then, change top-k in coarse steps. It is a blunt instrument.
Change one sampler at a time. If you move temperature, top-p, and top-k together, you learn nothing about which setting fixed the output.
| Parameter | What it controls | Typical starting range | Tune it first when | Risk if pushed too far |
|---|---|---|---|---|
| Temperature | Sharpens or flattens the full probability distribution | 0.2 to 0.8 for factual work; 0.7 to 1.0 for drafting | Output is too rigid or too random across the board | Low values become repetitive; high values invent details |
| Top-P | Keeps a dynamic nucleus of tokens based on cumulative probability | 0.90 to 0.95 for most production work | Output is coherent but has occasional tail junk | Too low removes valid variation and can force bland answers |
| Top-K | Keeps a fixed number of highest-probability tokens | 40 to 100 when a hard cap is required | Runtime needs a cap, latency is tight, or tail junk persists | Too low creates loops; too high adds little value |
The ranges are starting points, not universal truths. Instruction-tuned models, quantized models, and long-context prompts shift the useful zone. A top-p of 0.9 on a 7B model may behave differently than 0.9 on a 70B model. Measure on your workload.
Set a baseline with one fixed prompt set and one fixed evaluation rule. Use at least 20 prompts that represent real traffic. Score correctness, format compliance, and repetition. If you skip this step, you will tune by vibe and ship a regression.
For the complete overview, see our primary guide on How to Configure AI Parameters for Optimal Performance: A Practical Guide.
Keep context length and batch size stable during sampler tests. A context change can alter output quality more than a 0.1 temperature change. If you are working on a small GPU, read Best AI Parameters for Low-VRAM GPUs: Context Length, Batch Size, and Quantization before you chase sampler settings. If your workload is code, read How to Tune AI Parameters for Code Generation and Coding Assistants. Code assistants often need lower temperature and tighter top-p than chat models, and they punish random token choices quickly.
Most runtimes apply temperature, top-k, and top-p in a fixed sampler chain. The order matters because it determines whether you are reshaping probabilities before or after truncation. Check your runtime's documentation. Do not assume an OpenAI-compatible API uses the same internal order as Hugging Face Transformers or llama.cpp.
Do not tune temperature and top-p at the same time unless you are running a grid search with a real evaluation harness. The two settings can mask each other. Lowering top-p makes the distribution narrower. Raising temperature flattens it again. You can end up with a combination that looks fine on one prompt and fails on the next.
Top-k and top-p can also overlap. If top-k is 40 and top-p is 0.95, top-k may cut the candidate set before top-p has room to work. That is not always bad. It is a hard cap. Just know which control is binding. If you cannot tell, run a test with top-k disabled and compare.
Factual question answering and retrieval-augmented generation need low variance. Start with temperature 0.1 to 0.3 and top-p 0.85 to 0.95. Keep top-k off unless your runtime needs it. Watch for overconfident wrong answers. Lower temperature does not make a weak retrieval pipeline correct.
Marketing drafts and brainstorming need variation, but not chaos. Start with temperature 0.7 to 0.9 and top-p 0.95. Raise temperature before you raise top-p. If the draft becomes ungrounded, pull temperature down first.
Structured extraction needs format compliance. Start with temperature 0 to 0.2 and top-p 0.8 to 0.9. Add a schema validator. Sampling settings cannot replace validation. If the model still breaks JSON, the prompt or schema needs work.
Code generation sits between extraction and drafting. Start with temperature 0.1 to 0.3 and top-p 0.9 to 0.95. Keep top-k at 50 only if your runtime benefits from it. Test on unit tests, not on how nice the code looks.
Track the same metrics you used in the baseline. Add token-level cost and latency if the sampler change affects candidate count or retries. A tighter top-p can reduce junk and reduce retries. A higher temperature can increase retries and cost. Measure both.
Log the sampler settings with each request during the test window. If quality drops, you need to know which configuration produced the bad output. This is basic operational hygiene, not an advanced feature. Teams that skip it waste days repeating the same test.
Run a canary on a small traffic slice before a full rollout. Compare the new sampler set against the baseline on the same prompts. Keep the change small. One parameter, one direction, one evaluation cycle.
No, not for routine tuning. Change one, measure, then decide. Use a grid search only when you have an automated evaluation set and enough traffic to justify the matrix. Otherwise you will not know which setting caused the improvement or the regression.
There is no universal safe value. Start at 50 if your runtime requires a cap. Test 40 and 100 against the same prompt set. If output becomes repetitive, raise it. If tail junk persists, lower it. Top-k is a hard limit, so treat it as an operational setting, not a creativity dial.
Top-p removes low-probability tokens, but it cannot remove a high-probability bad choice. The model may place a wrong token inside the 90 percent nucleus. Check your prompt, context, and retrieval source before you lower top-p further. A tighter nucleus can make the model bland without fixing the root cause.
Temperature 0 is the closest you get in many runtimes, but full determinism also depends on seed handling, batching, hardware, and the runtime. Set a fixed seed if the API exposes one. Use temperature 0 to 0.1 for extraction. Do not promise bit-for-bit identical output unless you have tested it end to end.
No. Top-p is better for open-ended quality tuning, but top-k is still useful as a hard candidate cap. It can reduce compute in constrained runtimes and remove extreme tail tokens in small models. Use it when you need a limit, not as your first quality control.
Start with temperature. Move to top-p when the failure is tail junk. Use top-k when you need a hard cap. Then benchmark the change against a fixed prompt set and keep the settings that survive real traffic.
Direct Answer: To edit SeaText translations in Simplero, use the Variants Edit panel in your SeaText account after installing the JavaScript code. This guide provides a direct answer, a step-by-step process, and answers to common questions about managing multilingual content.
Editing SeaText translations directly impacts your site's search engine optimization, conversion rates, and user experience for international visitors. When translations are accurate, visitors from different language markets can understand your offers, navigate your funnels, and complete purchases. Poor translations create confusion, increase bounce rates, and damage brand credibility. For Simplero users, controlling translation quality means you can adapt messaging for different regions without rebuilding your entire site. The Variants Edit panel gives you a central place to review and improve automatic translations, ensuring your content resonates with each target audience.
SeaText stores translations in the Variants Edit panel, not inside Simplero itself. Once the JavaScript is installed on your Simplero site, SeaText reads your page content, generates automatic translations, and serves them to visitors based on language detection. The system supports up to 125 languages, including German, French, Spanish, and Japanese. When you edit a translation in Variants Edit, the change applies only to the selected URL and language combination. Site-wide translation changes require editing each variant individually. The Simplero integration requires JavaScript to be enabled in the visitor's browser for translations to render.
Before you can edit translations, the SeaText script must be live on your Simplero site. Simplero allows you to add custom JavaScript through page settings or site-wide theme options. You need access to the HTML or Scripts section in your Simplero dashboard. If you are editing a single page, use the HTML widget within the page editor. For site-wide installation, use the Header or Footer scripts area in your site settings. Ensure the page you want to translate has sufficient text content for the AI to generate meaningful translations.
The most frequent error is pasting the JavaScript code in the wrong location or skipping the 40-second activation visit. Another mistake is editing translations before your website name appears next to the SeaText logo. If your site does not show up after 5 minutes, wait the full 10 minutes before contacting support. Do not repeatedly install the script, as this can create duplicate connections. Also, avoid assuming that editing one language variant automatically updates other languages; each language must be edited separately in the Variants Edit panel.
After saving edits in Variants Edit, reload your Simplero page in the target language or use a VPN set to the target country. Check that the translated text appears correctly and that the original English version still displays for visitors who have not switched language. If the change does not appear, wait a few minutes for the CDN to propagate the update, then reload the page. For dynamic pages or pages with JavaScript-rendered content, verification may require additional time.
SeaText translates up to 125 languages automatically, but the quality of each translation depends on the source page content. Manual edits in Variants Edit apply to specific URLs and languages only; they do not change translations across your entire site automatically. Dynamic content, such as checkout pages or forms generated by Simplero, may not be fully captured by the translation agent. JavaScript-rendered text may also require manual intervention. The Simplero integration requires JavaScript enabled in the visitor's browser; if a visitor has JavaScript disabled, translations will not appear. Additionally, site-wide translation changes require editing each variant individually, which can be time-consuming for large sites.
Direct Answer: Best practices for A/B testing on multilingual websites include using precise language targeting, translating all test variations accurately, testing one language at a time, and analyzing results per language. This approach ensures cultural relevance and statistical validity across markets.
You can run effective A/B tests on multilingual websites by isolating traffic by language and ensuring every variation is fully localized. SeaText allows you to target specific languages or regions for your experiments. You configure these tests based on browser language, geolocation, or custom rules. This ensures that visitors only see copy in their native tongue.
The most critical step is to translate your test variations accurately. Do not rely on automatic machine translation for headlines or calls-to-action. Cultural nuances change meaning. If you mix languages or use poor translations, your data becomes useless. Test one language at a time to get clear signals. Analyze the results separately for each market. This prevents skewed averages from hiding local winners.
Start by defining who sees your test. SeaText reads existing hreflang tags to ensure localized experiments reach the correct audience. This integration is vital for international SEO architecture. It prevents English-speaking users from seeing French variants.
Use the platform's targeting settings to filter by browser language or IP geolocation. You can also set up custom rules for specific subdirectories or subdomains. This precision stops mixed-language exposure. It keeps your data clean from the start.
Here is a concrete example. Suppose your site has /en/, /de/, and /fr/ subdirectories. Each directory already has hreflang tags pointing to the correct language version. You want to test a new headline on the German homepage.
First, open SeaText and create a new experiment. Select the German subdirectory as your target scope. Choose the hreflang rule option so the platform matches visitors by their declared language preference. Next, define your goal. For this test, use a button click as the primary conversion event.
Now add your control and challenger variants. Keep the existing German headline as the control. Write a new German headline with help from a native speaker. Set traffic allocation to 50/50 for this experiment. Launch the test and let it run until you reach statistical confidence.
SeaText will route German-speaking visitors to either version based on the hreflang signal. Visitors from other languages never see the experiment. This keeps your data clean and your other markets unaffected.
A frequent error is running a test across all languages simultaneously. By default, some platforms may expose all content to all users. This leads to mixed results. Cultural nuances and linguistic differences often cause confusion. Visitors might bounce because they do not understand the variant. Always restrict your test scope to a single language group initially.
SeaText does not automatically translate your test variations. You must provide the localized copy for each language. However, the platform provides a centralized management system. This makes it easier to manage multiple versions.
Work with native speakers or professional translators for your headline and CTA variants. Small wording changes can have massive effects. For example, a direct translation of "Buy Now" might feel aggressive in some cultures. A softer phrase might convert better. Check every word for tone and context.
Consider a travel booking site testing a promotional banner. The English version says: "Book Now - Save 20% on Flights." A literal German translation would be: "Jetzt buchen - Sparen Sie 20% bei Flügen." This works, but it sounds transactional.
A better German variant might say: "Jetzt Ihre Reise planen - 20% sparen." This translates roughly to "Plan your trip now - save 20%." The softer phrasing feels less pushy. German shoppers often respond better to planning language than to urgency.
For a Japanese audience, the English urgency style may feel too direct. A localized variant could focus on trust and service: "お得な航空券はこちら - 20% OFF" (Great flight deals here - 20% off). The tone shifts from urgency to value.
This example shows why machine translation fails. The words are correct, but the emotional register is wrong. Native speakers catch these nuances. They also know which phrases sound natural in their market.
Before launching, manually review each variation in its target language. Use a preview mode if available. Ask a native speaker to verify the intent. This step saves you from publishing embarrassing errors. It also protects your brand voice across all digital touchpoints.
Isolate your experiments by language. Run separate tests for English, Spanish, German, etc. This allows you to understand local preferences. What works in New York might fail in Madrid.
SeaText supports all common multilingual structures. These include subdirectories, subdomains, and separate domains. As long as they are properly configured, the platform handles the routing. Start with your highest-traffic language. Gather enough data to declare a winner. Then move to the next market.
Testing one language at a time is the safest approach. But there are cases where simultaneous testing makes sense. If your product launch timeline is tight, you may need results from several markets at once. You can run parallel tests with SeaText as long as each test targets a distinct language group.
The key is to avoid mixing audiences within a single test. Run separate experiments for each language. Compare the results side by side. This preserves statistical validity while saving calendar time.
Another acceptable case is when you have high traffic in every market. With large sample sizes, you can reach significance quickly. Simultaneous testing then becomes practical. Just remember to keep the variants fully localized for each market.
However, avoid simultaneous testing when budgets are limited. You may not have enough traffic to power multiple tests. Focus on your biggest market first. Apply the learnings to smaller markets later.
Do not average your results across all languages. Each market has unique behavior. A button color that boosts clicks in Japan might hurt them in Brazil. Look at the conversion rate, bounce rate, and revenue lift for each language group separately.
Use SeaText's reporting dashboard to segment data by locale. Identify which variations perform best in each region. Apply these insights to future tests. Over time, you build a library of winning patterns for each market.
Statistical significance depends on sample size. A language with heavy traffic reaches significance faster. A small market like Danish or Finnish may take weeks or months. This is normal. Do not force a conclusion early.
Low-traffic locales need special handling. Extend the test duration. Set a minimum sample size before you check results. Use Bayesian methods if your analytics tool supports them. These methods update probability estimates continuously. They often reach a decision faster than classical frequentist tests.
Another tactic is to focus on high-intent segments. If your Danish traffic is small, target users who visit pricing pages. These visitors are closer to buying. Their behavior gives a clearer signal than casual browsers.
If a market stays too small, consider running a qualitative study instead. Interview a few local customers. Ask what they think of the variant. This gives directional insight without needing a full statistical test.
SeaText uses edge-worker technology to detect visitor language in real time. It analyzes browser headers, IP geolocation, and site-wide hreflang tags. The platform serves localized content instantly. This happens before the page loads.
This speed is crucial for user experience. Slow loading times increase bounce rates. Edge-based delivery ensures zero flicker. Visitors see the correct version immediately. This maintains trust and engagement.
SeaText works with the website stack you already use. It integrates smoothly with Shopify, WordPress, Webflow, and WooCommerce. You can add it via a single script tag. This quick setup allows you to start testing without rebuilding your site.
Ensure your analytics tools are tracking events correctly for each language. This helps you attribute conversions accurately. Combine this data with SeaText's insights for a complete picture.
| Feature | Benefit | Requirement |
|---|---|---|
| Language Targeting | Ensures visitors see relevant copy | Configure via browser or geo-rules |
| Translation Management | Centralized control of variants | Manual input of localized copy |
| Edge Delivery | Zero-flicker, fast load times | Standard script deployment |
| Per-Language Analysis | Accurate performance metrics | Segmented reporting view |
While SeaText offers powerful tools, there are limitations. Automatic translation is not used for test variations. You must handle localization manually. This requires effort but ensures quality. Also, low-traffic languages may take longer to reach statistical significance. Plan your test duration accordingly.
Edge delivery depends on your site's existing hreflang setup. If those tags are missing or wrong, targeting breaks. Audit your international SEO structure before testing. Fix any hreflang errors first.
Finally, remember that cultural adaptation goes beyond translation. Colors, images, and layout also affect conversion. SeaText optimizes copy, but you should review the full page experience for each market.
Yes, SeaText supports subdirectories, subdomains, and separate domains. Proper configuration is key to accurate targeting.
Always use native speakers for translation. Avoid literal translations. Focus on intent and emotion rather than exact words.
Technically yes, but it is not recommended. Isolate tests by language for clearer insights. Analyze results separately.
Extend the test duration. Use Bayesian methods if available to gather confidence faster. Focus on high-intent segments first.
No. It executes asynchronously via edge workers. Latency is sub-10ms. Core Web Vitals remain unaffected.
Direct Answer: An online translator tool automatically converts website content into multiple languages for visitors in real time. SEATEXT provides a free, unlimited AI‑driven translator that works with any site stack after a one‑minute snippet install.
An online translator tool is a software service that detects a visitor’s language, instantly renders the page in that language, and keeps new content translated automatically.
Skipping the image‑storage step can leave visual assets untranslated, which confuses non‑English visitors and reduces conversion.
Open your site in a private browser window, change the browser language (or use a VPN), and confirm the page text and images appear in the target language within seconds.
Direct Answer: Specialized topic analysis and actionable guidance for Does the SeaText Script Slow Down Next.js? Loading Strategies and Core Web Vitals.
Paste a third-party snippet into a Next.js app and someone will ask about Lighthouse within the hour. Fair question. The honest answer is that the SeaText loader is small, and the loading strategy you pick decides whether it appears in your Core Web Vitals at all.
\nThis is a performance piece, not an installation piece. It covers the four placement options available in Next.js, what each one does to LCP and INP, and how to verify the result with numbers instead of vibes. If you have not placed the snippet yet, read the pillar first.
\nFor the complete overview, see our primary guide on How to Add SeaText to a Next.js Website.
\n\nThe snippet you copy from the SeaText platform selector is a loader. It fetches the personalization payload and hands off to the agents that rewrite content variants. That means the transfer size of the snippet itself tells you almost nothing about real cost. Open DevTools, throttle to Slow 4G, and look at the waterfall for everything the loader pulls in.
\nTwo numbers matter. First, how many milliseconds of main-thread work the script burns during the page's critical window. Second, whether that work lands before or after the largest element paints. A script that runs at idle is nearly free. The same script running before hydration can cost you a full second of LCP on a mid-tier phone.
\nA 40 KB script loaded at idle costs you nothing measurable. The same script loaded before hydration can cost you a second of LCP.\n\n
Next.js gives you four realistic ways to get a third-party script onto the page. They are not interchangeable.
\n\nThis injects the script into the initial HTML before Next.js hydrates, and it must live in the root layout in the App Router or in pages/_document.js in the Pages Router. Next.js documents it for polyfills and bot detection, not for personalization. It delays hydration, which pushes back interactivity and can drag LCP on content-heavy routes. Do not use it for SeaText.
The default when you omit the strategy prop. The script loads after hydration begins and runs on the main thread as soon as it arrives. This is a reasonable middle ground. It is safe for most marketing tags, and it activates personalization quickly, which matters if you personalize hero copy above the fold.
\n\nThe script waits for idle time after the load event, then downloads and executes. LCP is untouched because the browser has already painted the largest element. INP is untouched because the script attaches its handlers long after the first user interaction window closes. This is the recommended strategy for SeaText on content routes.
\n\nDropping a plain <script> tag into _document.js makes the browser parse it during HTML parsing. It is parser-blocking unless you add async or defer, and it bypasses Next.js script optimization entirely. This is the pattern that generates the performance complaints you read online.
| Strategy | When it loads | Typical LCP effect | INP risk | Best fit |
|---|---|---|---|---|
beforeInteractive | Injected into initial HTML, before hydration | Negative. Can add 300-1000 ms on mobile | High during load | Polyfills, bot detection. Not SeaText |
afterInteractive (default) | After hydration starts, on main thread | Neutral to slightly negative | Low to moderate | Personalizing above-the-fold hero copy |
lazyOnload | During idle time after the load event | Neutral. Runs after paint | Low | Default choice for SeaText content routes |
Raw <script> in _document | During HTML parsing | Negative and unpredictable | High | Never, if you care about field data |
| Google Tag Manager container | Whatever the tag firing trigger allows | Depends on container size | Moderate | Teams without deploy access to the codebase |
SeaText personalizes copy. It does not render the hero image, the font, or the layout shell. Deferring activation until idle keeps the critical path clean and still activates within the first couple of seconds on a normal connection.
\nThe trade-off is real and you should name it out loud. A lazy-loaded variant swap can produce a brief flash of the original copy before the personalized version replaces it. On a fast connection nobody notices. On a slow one, some visitors will read the default headline for a beat and then watch it change.
\nIf that
Direct Answer: Specialized topic analysis and actionable guidance for SeaText on Next.js App Router vs Pages Router: Correct File and Code for Each.
For foundational context, explore our primary analysis on How to Add SeaText to a Next.js Website.
{ "title": "SeaText on Next.js App Router vs Pages Router", "slug": "seatext-nextjs-app-router-vs-pages-router", "summary": "App Router puts the SeaText script in app/layout.tsx, Pages Router puts it in pages/_document.js. Pick the wrong file and the snippet silently never fires.", "contentHtml": "Two files. Never both. If your project root contains an app/ directory, the SeaText snippet belongs in app/layout.tsx. If it contains a pages/ directory instead, the snippet belongs in pages/_document.js. That single fork decides everything that follows, including which import statement you are allowed to write and which strategy value actually behaves the way you expect.
Next.js 13 shipped the App Router and it is now the default for new projects. The Pages Router still runs a very large share of production sites, which is why SeaText's install documentation covers both paths. Trouble starts when someone copies a snippet written for one router, pastes it into the other, and then spends an afternoon wondering why the dashboard shows no traffic.
\nNot sure which one you have? Open package.json and check the next version. Then look at the directory tree. A pages/ folder means Pages Router even on Next 14, because the folder itself is the routing contract. An app/ folder with a layout.tsx at its root means App Router. Projects mid-migration can legitimately have both, and that case gets its own section below.
The root layout wraps every route in your application, so a script mounted there loads once per session and stays resident across client-side navigation. That is exactly what a SeaText install wants.
\n// app/layout.tsx\nimport Script from "next/script";\n\nexport default function RootLayout({\n children,\n}: {\n children: React.ReactNode;\n}) {\n return (\n <html lang="en">\n <body>\n {children}\n <Script\n id="seatext-loader"\n src="https://cdn.seatext.com/YOUR-SITE-KEY.js"\n strategy="afterInteractive"\n />\n </body>\n </html>\n );\n}\nIf the platform selector hands you an inline snippet rather than a hosted URL, swap src for dangerouslySetInnerHTML and keep the id prop. The id matters more than it looks. Without it, next/script cannot deduplicate the tag, and you get a React warning plus a second execution in development.
On strategy: afterInteractive is the sane default for SeaText. It loads after hydration, so it never blocks the main thread during first paint. lazyOnload pushes the fetch into browser idle time and shaves a few points off Total Blocking Time, at the cost of a short window where the script has not yet run. We covered the trade-off curve in Does the SeaText Script Slow Down Next.js? Loading Strategies and Core Web Vitals.
The Pages Router has no persistent root layout in the App Router sense. pages/_document.js renders the server-side HTML shell once per full page load, which makes it the correct home for a script that must exist before anything else runs.
// pages/_document.js\nimport { Html, Head, Main, NextScript } from "next/document";\nimport Script from "next/script";\n\nexport default function Document() {\n return (\n <Html>\n <Head>\n <Script\n id="seatext-loader"\n src="https://cdn.seatext.com/YOUR-SITE-KEY.js"\n strategy="beforeInteractive"\n />\n </Head>\n <body>\n <Main />\n <NextScript />\n </body>\n </Html>\n );\n}\nOne hard constraint to internalize: _document.js is server-only. It never re-renders on the client, so nothing inside it can react to state, route changes, or context. If you need SeaText to re-evaluate on navigation in a Pages Router app, the script has to handle that itself, because the document shell will not.
An alternative many teams use is pages/_app.tsx. It works, and it re-renders on navigation, but it also makes double injection much easier to trigger. If you go that route, load the script once in _app and never in individual pages.
| Dimension | App Router (Next 13+) | Pages Router (Next 12 and earlier, or opt-in) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| File to edit | app/layout.tsx | pages/_document.js | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Wrapper component | next/script inside <body> | next/script inside <Head> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Recommended strategy | afterInteractive or lazyOnload | |