Create a Standalone Website to Host a LoyJoy Agent
This guide shows how to publish a standalone website on your own domain and embed a working LoyJoy agent on it. If you already have a website, skip to Embed your agent in the HTML file.
Step 1: Register a domain
Choose a domain name for your site, for example your brand or product name. Check its availability and register it with any domain registrar (for example Namecheap, IONOS, or GoDaddy). Registration is a guided checkout: pick the name, add it to the cart, create an account, and pay. You can usually register for one or more years.
Step 2: Choose a hosting service
A hosting service stores your website files and serves them to visitors. For a static page like this, any static host works well, for example Netlify, Cloudflare Pages, or GitHub Pages. Sign up, then connect your domain by pointing its DNS records to the host; the host provides the exact records to set.
Step 3: Create the website
Create an HTML file for your page. A minimal starting point:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>My Site</title>
</head>
<body style="margin:0">
</body>
</html>
Embed your agent in the HTML file
Open the Publish tab of your agent and copy your LoyJoy snippet. Paste it directly before the closing </body> tag.
Step 4: Publish the website
Upload your files to your hosting service (each host documents its upload or Git-based deploy flow). Then open your domain in a browser, you should see your page with the LoyJoy agent embedded.