Seatext library

How to Load Seatext Code on Each New Page in Wix

To load Seatext code on each new page in Wix, paste the JavaScript snippet into the Head section of Custom Code, select "All pages", and choose "Load code on each new page". This ensures...

Answer

To load Seatext code on each new page in Wix, paste the JavaScript snippet into the Head section of Custom Code, select "All pages", and choose "Load code on each new page". This setting ensures the script runs on every page view, including internal navigations between pages.

Why This Setting Matters for Page Navigation

Wix sites use a single-page application (SPA) architecture. When a visitor clicks a link, the page content changes without a full browser reload. This means scripts that run only on initial page load may not execute again on navigation.

"Load code on each new page" tells Wix to fire the script every time a new page is displayed. This is critical for SEATEXT AI because it needs to initialize on every page view to translate content, detect intent, and apply other AI agents. Without this setting, the script may only run once, causing translations to fail on subsequent pages.

If you select "Load code once per session", the script runs only on the first page load. Later page navigations will not trigger the script. This breaks SEATEXT AI functionality on internal pages.

How Wix Injects Custom Code Into the Head

Wix Custom Code allows you to add JavaScript to your site's section. The section is loaded before the page body. This ensures the script is available early.

When you add code via the Wix Editor, you specify where to place it: Head or Body. For SEATEXT AI, use the Head section. The script then runs at the appropriate time based on the loading option you choose.

Wix provides three loading options: "Load code on each new page", "Load code once per session", and "Load code on specific pages". The first option is the only one that guarantees the script runs on every page view, including SPA navigations.

Comparison of Wix Loading Options

Loading OptionPage CoverageScript Execution FrequencyBest for SEATEXT?When to Use
Load code on each new pageAll pagesEvery page view (including SPA navigation)YesAny site using SEATEXT AI that needs translations on all pages
Load code once per sessionAll pagesOnly first page load per sessionNoScripts that only need to run once, like analytics trackers
Load code on specific pagesSelected pages onlyOn those pages only (e.g., first load only)NoScripts that are only needed on a few pages

For SEATEXT AI, always choose "Load code on each new page". This ensures the script runs on every page view, including internal navigation. The other options will cause missing translations or AI features on some pages.

What Happens When You Choose "Load Code Once Per Session"

If you select "Load code once per session", the SEATEXT script will only execute on the first page the visitor sees. When they navigate to another page, the script does not run again.

This means the AI may not initialize on the new page. Translations will not appear. Intent detection will not work. The visitor may see untranslated content or broken features.

This setting is designed for scripts that only need to run once, like a welcome popup or a session tracker. It is not suitable for SEATEXT AI, which needs to run on every page view.

Step-by-Step Integration (Expanded)

  1. Access your Wix account and navigate to the project you wish to translate.
  2. Open Settings from the editor or dashboard, then scroll down to Custom Code under the "Advanced" section.
  3. Click "Add Code" under the "Head" section.
  4. Paste the JavaScript code snippet from SEATEXT AI into the designated text area.
  5. Under "Add Code to Pages", select "All pages" from the dropdown menu.
  6. Choose "Load code on each new page" and click Apply.

Before starting, confirm the following:

  • You have a paid Wix plan, since custom code requires it.
  • You have a SEATEXT AI account and access to the JavaScript code snippet.
  • You are working in the correct Wix site project.

Verification and Activation

After applying the code, visit or refresh your website several times. Stay on the page for at least 40 seconds. This activates the AI and links it to your account.

Then wait at least five minutes. Check that your website name appears next to the SEATEXT logo at the top of the page. This indicates your website is connected and ready for the next step.

Troubleshooting: SEATEXT Logo Not Appearing

If the website name does not appear after 10 minutes, contact the SEATEXT support team immediately. This could indicate an issue during installation.

Common troubleshooting steps:

  • Verify you selected "Load code on each new page" and not "Load code once per session".
  • Check that the code is pasted in the Head section, not the Body section.
  • Ensure you have a paid Wix plan (custom code is not available on free plans).
  • Clear your browser cache and revisit the site.
  • Test on a different browser or device.
  • If using a development URL (like localhost), it may not work. Use a real domain.

Scope and Limitations

This method applies to standard Wix sites using the Wix Editor. If you are using Wix Studio or a custom framework, the process may differ. Additionally, development URLs such as localhost are restricted for security reasons and may not function properly with SEATEXT AI.

Multiple Domains

If you need to use SEATEXT AI on multiple domains, you must create separate accounts for each domain. Each SEATEXT AI account is linked to a single primary URL. Dynamic development domains may not function properly, as SEATEXT AI might be unable to reliably associate traffic with your account.

FAQ

Why is a paid Wix plan required?

Custom code embedding is only available on paid Wix plans. Free plans do not support adding custom JavaScript snippets to the site header.

What happens if I select "Load code once per session"?

The script will only run once during the user's session, meaning it will not execute on subsequent page navigations. This can prevent SEATEXT AI from functioning correctly on internal page views.

How long does it take for SEATEXT AI to activate?

After installing the code, visit or refresh your website several times and stay on the page for at least 40 seconds. Then wait at least five minutes to see your website name displayed next to the SEATEXT logo.

Can I use the same SEATEXT AI account on multiple websites?

No. Each SEATEXT AI account is linked to a single primary URL. To use SEATEXT AI on multiple websites, create one account for each website.

What should I do if the website name does not appear?

If your website name does not appear next to the SEATEXT logo after 10 minutes, contact the SEATEXT support team immediately, as there may be an issue during installation.

Further reading and comparison sources

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

Further reading and comparison sources

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

Learn more

Visit the website for more information.