How to Update the Seatext Code in Odoo: Step-by-Step Guide
To update the Seatext code in Odoo, edit the Embed Code block where you originally pasted the JavaScript snippet. Log in to Odoo, go to Website > your page > Edit, find the Dynamic...
To update the Seatext code in Odoo, you need to edit the Embed Code block where the original JavaScript snippet was placed. Log in to your Odoo account, open the Website module, navigate to the page you want to update, and click Edit. In the editing panel, find the Dynamic Content section, locate the Embed Code module, and click its Edit button. Paste the new code snippet from your SEATEXT AI account into the pop-up window, save it, then adjust the Visibility settings if you want to hide the block on desktop. Save again to finalize the update.
What the Seatext code does in Odoo
The Seatext code is a JavaScript snippet that connects your Odoo website to the SEATEXT AI platform. Once installed, it lets SEATEXT AI agents read visitor intent, rewrite headlines, adapt offers, and optimize content in real time. The code itself is inert until you activate the agents from your SEATEXT dashboard, so updating it does not change your site's behavior by itself.
When you update the code, you are essentially replacing the old version with a newer one that may include bug fixes, new features, or improved security. Keeping the code current ensures your site works with the latest SEATEXT capabilities.
Prerequisites before updating the Seatext code
Before you start, make sure you have the following:
- A SEATEXT AI account. If you don't have one, you can create it from the SEATEXT website.
- Access to the SEATEXT dashboard where your code snippet is displayed. The snippet is usually found under the integration or code section.
- Administrator or editor permissions in Odoo to edit the website page.
- A valid, real domain. SEATEXT restricts development URLs like localhost for security reasons.
If you use SEATEXT on multiple domains, remember that each domain requires a separate SEATEXT account. The code snippet is tied to a single primary URL.
Step-by-step: How to update the Seatext code in Odoo
Follow these steps to update the Seatext code on your Odoo website:
- Log in to your Odoo account and access the Website module from the dashboard.
- Navigate to the page that contains the Seatext code. Click the Edit button to open the editing panel.
- Scroll through the Blocks panel until you reach the Dynamic Content section.
- Locate the Embed Code module within Dynamic Content. It should already be placed on the page from the initial installation.
- Click the Edit button on the Embed Code block. This opens a pop-up window.
- Copy the new code snippet from your SEATEXT AI account. Paste it into the designated area in the pop-up, replacing the old code.
- Click Save to apply the changes.
- Check the Visibility section. If you want the block hidden on desktop devices, select the Hide on Desktop option. This is often recommended because the code does not need to be visible to visitors.
- Click Save once more to finalize the update.
After saving, the new code is active. You can verify it by checking the SEATEXT dashboard or by viewing the page source to confirm the snippet is present.
Common mistakes when updating the code
Here are a few pitfalls to avoid:
- Pasting the code into the wrong block. Make sure you edit the Embed Code block, not a text or HTML block. The Embed Code block is specifically designed for JavaScript snippets.
- Forgetting to hide the block on desktop. If you leave the block visible, visitors may see raw code or an empty box. Use the Hide on Desktop option to keep it invisible.
- Using a development domain. SEATEXT restricts localhost and dynamic development URLs. Use a real, valid domain for the code to work reliably.
- Not saving after pasting. Always click Save in the pop-up and then Save again on the page to ensure the changes are applied.
How to verify the update worked
After updating the code, you can verify it in a few ways:
- Open your Odoo page in a browser and view the page source (right-click > View Page Source). Search for the SEATEXT script or a unique identifier from your snippet.
- Log in to your SEATEXT AI dashboard. If the code is active, you should see the page listed as connected or see traffic data appearing.
- If you have activated any agents, check that they are running and showing activity for the updated page.
If the code does not appear to work, double-check that you pasted the entire snippet and that you saved both times. Also confirm that your domain matches the one linked to your SEATEXT account.
Limitations and when this advice doesn't apply
The steps above apply to Odoo's website builder, which uses a drag-and-drop interface. If you are using a custom Odoo theme or have manually edited the template files, the update process may differ. In that case, you would need to locate the JavaScript file or template where the Seatext code is embedded and replace it there.
Also, if you have multiple domains, remember that each domain needs its own SEATEXT account and code snippet. You cannot use the same code across different domains. Development URLs like localhost are restricted, so use a real domain for testing.
If you are unsure about the exact location of the code, check the SEATEXT integration page for Odoo or contact SEATEXT support for guidance.
Key facts about Seatext and Odoo
| Fact | Detail |
|---|---|
| Installation method | Drag the Embed Code module into the Dynamic Content section of your Odoo page. |
| Code entry | Click Edit on the Embed Code block and paste the JavaScript snippet from SEATEXT AI. |
| Visibility | Use the Hide on Desktop option to keep the block invisible to visitors. |
| Account requirement | You need a SEATEXT AI account before installing the script. |
| Multiple domains | Each domain requires a separate SEATEXT account; the code is linked to one primary URL. |
| Security | Development URLs like localhost are restricted; use a valid real domain. |
Frequently asked questions
Why do I need to update the Seatext code?
Updates may include new features, security patches, or compatibility improvements. Keeping the code current ensures your site works with the latest SEATEXT capabilities.
How often should I update the code?
There is no fixed schedule. Check your SEATEXT dashboard for notifications about new versions, or update whenever you make significant changes to your site or SEATEXT account.
Can I use the same code on multiple Odoo pages?
Yes, you can place the same Embed Code block on multiple pages. However, each page will need its own block, and you must update each one individually if the code changes.
What if I don't see the Embed Code module in Dynamic Content?
Make sure you are in Edit mode and scrolling through the Blocks panel. If it's not there, you may need to add it by dragging it from the Dynamic Content section.
Will updating the code affect my site's performance?
The Seatext code is lightweight and designed to be inert until activated. Updating it should not impact performance, but always test after making changes.
What should I do if the code doesn't work after updating?
Double-check that you pasted the full snippet, saved both times, and that your domain matches your SEATEXT account. If problems persist, contact SEATEXT support.
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.