Square Online lets you add your own code to every page of your site from the Square Dashboard, and that is all the Yaplet widget needs. You copy one block of code from Yaplet, add it in Square, publish your site, and the chat button appears. You don't need an app or a developer.
In the United States, every Square Online plan can add custom code, including the free plan. In the other countries, Square's help lists it for the Plus and Premium plans.
1. Copy your Yaplet code
In the Yaplet dashboard's left menu, go to Brand → (your brand) → Chat widget → Install. If the tab asks where your website runs, choose Other website. Copy the code with the copy button on the code block.
The browser runs the code as a script only if it sits between a <script> line and a </script> line. With Other website chosen, the code already has these lines. If the tab didn't ask, the code is plain JavaScript that starts with !function (Yaplet, and you add the lines in step 3.
2. Open Tracking Tools in Square
Sign in to your Square Dashboard and go to Channels → Square Online. Then select Settings → Tracking Tools.
3. Add the Yaplet code
- Select Add new code.
- In the pop-up window, enter a name you will recognize later, for example Yaplet chat.
- Paste the Yaplet code into the code field. It must start with a
<script>line and end with a</script>line. If what you copied starts with!function (Yapletinstead, type<script>on a new line before it and</script>on a new line after it. - For the placement, select End of body.
- Select Save.
4. Publish your site
The code goes live only after you publish. Go to Website → Editor and click Publish. In the confirmation pop-up, click the link to your live site: Square confirms a newly published version only after it has been opened in a browser once.
5. Check your site
Reload your live site. The Yaplet chat button appears in the bottom-right corner. Click it to check that the chat opens.
For a full checklist, see Verify your installation.
If the chat doesn't appear
- You haven't published since adding the code. Publish the site from the editor and open the link in the confirmation pop-up.
- The code shows up as text at the bottom of your pages. The
<script>tags are missing. Edit the code in Tracking Tools, type<script>on a new line before it and</script>on a new line after it, save, and publish again. - You added the code as an Embed code section. Embed code sections show content inside one section of one page, like a calendar. Delete that section and add the code in Tracking Tools instead, so it runs on every page.
- You can't add code in Tracking Tools. Outside the United States, check that your plan is Plus or Premium.
- Your browser shows an old copy of the page. Reload the page, or open it in a private browser window.
What's next
To see what the code does and where your widget ID is, read Install Yaplet.