Basic Embed
Copy and paste the following HTML into a index.html file and then upload it to your web server and point your subdomain to it i.e. builder.your-domain.com.au
Repalce unda in customer: "unda" with your provided customer name.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Shed Designer</title>
<meta property="og:locale" content="en_AU"/>
<meta property="og:title" content="Shed Designer"/>
<style type="text/css">
body,
html,
#shed-root {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
</style>
</head>
<body>
<div id="shed-root"></div>
<!-- Keep the id, required for IE -->
<script id="webshed-loader" src="https://webshed.unda.com.au/loader.js"></script>
<script>
var app = new unda.App("shed-root", {
customer: "unda" // Change this to your customer name
});
// Use submitted form data here or trigger conversion.
app.on("form:submit", function(data) {
console.info("Customer data: ", data);
});
</script>
</body>
</html>
Conversions
Listen to the form:submit event to trigger a conversion. For more details, see: Quote Form Submit Event
app.on("form:submit", function(data) {
console.info(data);
});