Rodrigo Asai
Rodrigo Asai
  • Updated

To install the widget code on an HTML/CSS site, follow the steps below:

  1. Open the index.html of your website using your favorite editor.
  2. Search for the open tag <head>.
  3. Copy your JS code and place the embed code below as the first entry in your site's <head> tag

    <html>
      <head>
        <!-- Below is the UserWay widget code -->
        <script src="https://cdn.userway.org/widget.js" data-account="examplecode"></script>
        <!-- End of the UserWay code -->
        <meta charset="UTF-8">
        <title>Example Page</title>
      </head>
      <body>
        <h1>Welcome to Example Page</h1>
        <p>This is a sample HTML page.</p>
      </body>
    </html>

If the page is in HTML/CSS only (a non-dynamic page), the JS code must be implemented separately in all the individual pages of the website. For example: about.htmlor contact.html.