Integration example

Start your page with a name search.

A name generator can give visitors a clear next step in your page introduction. The search runs in the widget page configured for you.

Start with your personal widget URL.

You will need the widget page configured for you. Replace the placeholder below with its URL and use a unique container ID on your website.

<div id="my-name-generator"></div>
<script>
window.BUSINESSNAMEGENERATOR = {
    url: 'YOUR_PERSONAL_WIDGET_URL',
    title: 'Name generator',
    closeLabel: 'Close'
};
const loader = document.createElement('script');
loader.src = 'https://www.business-naming.com/packages/namerobot/namensgenerator.de/bin/widget.js';
loader.async = true;
loader.onload = () => window.BUSINESSNAMEGENERATOR.create('my-name-generator');
document.head.appendChild(loader);
</script>

The generator is created when the loader is ready. No fixed delay is needed.

Alternative: open the generator from a button

With the same loader and your personal widget URL, add this button to open the generator in a dialog:

<button type="button" data-name="generator-open">Find a name</button>

The existing businessNameGeneratorWidget-action class is also supported. Custom stylesheets require the corresponding option to be enabled for your widget.

Example: embed in page content · Example: embed in the page introduction

Plan your integration

Use the NameRobot contact form to tell us where you would like to use the generator and which features you need. We will discuss the configuration and terms for your website.