How can I add the code "<script src="http://socialsharemonkey.com/share.php?u=313&amp;p=166"></script>" before the closing </body> tag in Webflow without getting an error?

TL;DR
  • Open Webflow Project Settings, select the Custom Code tab, and scroll to "Before </body> tag".
  • Copy and paste the script into the text box, save changes, and publish the site to apply.

To add a third-party script before the closing </body> tag in Webflow, you must place it within the Custom Code section of your project settings.

1. Access Project Settings

  • Open your Webflow project and navigate to the Project Settings panel.

2. Enable Custom Code

  • Locate the Custom Code tab along the top menu.
  • Scroll down to the Before </body> tag section.

3. Insert the Script

  • Copy your script code: <script src="http://socialsharemonkey.com/share.php?u=313&amp;p=166"></script>.
  • Paste the script code into the text box provided in the Before </body> tag section.

4. Save and Publish

  • Click the Save Changes button to apply your modifications.
  • Publish your site to ensure the script is included in the live environment. Test to ensure the functionality is as expected.

Summary

To add a script before the closing </body> tag in Webflow, use the Custom Code section in Project Settings, ensuring to save changes and republish your site for the script to take effect.

Rate this answer

Other Webflow Questions