Unbounce

How to add Custom Scripts (JavaScript)

Angelica Epefanie Nacido avatar
Written by Angelica Epefanie Nacido
Updated over a week ago

Adding Custom Scripts (JavaScript)

  1. Before you get started make sure you have registered with Happierleads and that you see the installation script page. Choose the installation method ‘other’

  2. Then navigate to your landing page in the Classic Builder.

  3. Click the Javascript button on the bottom left-hand corner of the Classic Builder:

    Custom Scripts Javascript
  4. An empty dialog box will appear; this is where you can paste or type in your custom JavaScript:

    Javascripts dialog box in Classic Builder.
  5. Name your script using the Script Name field.

  6. You’ll want to choose the Placement of the script; this will depend on the script’s functionality or any instructions provided by the third-party app you’re copying this script from, as the placement may differ. Here are the different placement options in the Classic Builder:

    Script placement options in Classic Builder.


    • Before Body End Tag: This installs the script before the end of the body tag (</body>) in your page HTML.

    • After Body Tag: This installs the script after the start of the body tag (<body>) in your page HTML.

    • Head: This installs the script within the Head (<head>) section of your page HTML.

  7. Paste in the Happierleads JavaScript.

  8. Click Done at the bottom right-hand corner of the dialog box to save the script.

  9. Be sure to Save and Publish/Republish your page to finalize these changes.

Did this answer your question?