Site script are bits of code embedded directly into your site. They can add or exchange information with third-party sources. JavaScript stands out as the most widely used language for site scripting.
Creating a site script requires considerable knowledge of scripting techniques. It's important to note that scripting development and troubleshooting fall outside our support scope and should be undertaken with caution. A faulty script can swiftly disrupt the site for visitors. We strongly recommend creating a duplicate of your site as a backup before implementing any site script.
How to add scripts to your site
Select the site in your Sites Dashboard.
In the Site Details, click More.
Scroll down and click Edit beside Site Script under Code Injection.
Paste the script in the box.
Click Save.
Click Save again in the pop-up.
Note:
Site scripts only run on published sites. It will not run when previewing or editing the site.
Creating and troubleshooting site scripts falls beyond our direct support scope. Any modifications or fixes to site scripts are at your discretion.
You may experience performance issues if you have an excessive amount of scripts on your site.
You can also apply scripts to all of the sites in your account by using site snippets.