Start in your Wix Dashboard and go to Settings.
Scroll down and select </> Custom Code
Click the + Add Custom Code button in the top right corner.
Add your script in the Code Snippets box. Ensure the code is set to "Load Once" and save.
Once you've saved, your script should start firing immediately.
Tips to know:
- Before you begin, ensure that your site is published and has a connected domain.
- Go to Settings in your site's dashboard.
- Click the Custom Code tab in the Advanced section.
- Click + Add Custom Code at the top right.
- Paste the code snippet in the text box.
- Enter a name for your code.
- Tip: Choose a recognizable name for easy identification later.
- Select an option under Add Code to Pages:
- All pages: This adds the code to all of your site's pages, including any new pages created in the future. Choose whether to load the code only once per visit or on each page your visitor opens.
- Choose specific pages: Use the drop-down menu to select the relevant pages.
- Choose where to place your code under Place Code in:
Head
Body - start
Body - end