How to install your script
How to Add the Your Custom Script to Your Website
- Log in to the Stay22 Hub at https://hub.stay22.com/login.
- Navigate to the Script Builder and generate your unique script.
- Copy the script and add it to the <header> or <footer> of your website.
For WordPress Users:
If you’re using WordPress, install a plugin like WPCode to easily edit your header or footer. Simply paste your script into the appropriate section and save your changes. See How
For Google Tag Manager (GTM) Users:
If you don’t have GTM installed yet, watch this tutorial to set it up.
Already using GTM? Follow these steps to add your Stay22 script:
- Open your Google Tag Manager dashboard
- Click “Add a New Tag”
- Choose “Custom HTML” as the tag type
- Paste your Stay22 script into the Custom HTML box
- Check the box:
✅ Support document.write
Why this matters:
This script requires a specific technical feature to operate correctly. Enabling this setting ensures your tag works properly on your website. Without it, the script will not be able to install and function as expected. - Set the Trigger to All Pages (or wherever you want the script to run)
- Save the tag and Publish your changes
Your script is now live and optimizing your links automatically.
FAQ
Where do I install the script on my website?
The script should be placed in the header or footer of your website for it to run properly.
Can I use the script on multiple domains?
Yes! You can generate and manage scripts for multiple domains from the LMA Script Builder. Simply select the domain you want when creating a script.
What happens if I install the script incorrectly?
Nothing will break, but your links won’t be optimized. Double-check your installation, and if needed, our team can guide you through the process.