How to add Goboblo to your website

You add Goboblo to your website with two lines of code: you copy them in Goboblo and paste them where you want the box. This page shows the steps for plain HTML, React, Wix, Squarespace, Webflow and WordPress. If you build your website with AI, like ChatGPT or Claude, give the AI the code and the rules on this page.

Which parts can you add?

Four parts come as code: the Booking box, Button, Next match and Countdown. The names are the same as in Goboblo.

Part in GobobloWhat guests see
Booking boxThe whole booking, right on the page
ButtonA small button that opens the booking box
Next matchThe next match, with a countdown. Good on your home page.
CountdownA small clock that counts down to the next match

The Booking box and Button are there when you take table bookings in Goboblo, and Next match and Countdown when you show matches there (see the sports bar booking system). Read more about the restaurant booking widget.

Where do you find the code?

The code is in Goboblo under Settings, in the row “What do you want to show on your website?”. The Owner and Admin roles see the row. There you choose what your website is built with and which part to show, then press “Copy the code”. The code already has your key.

What does the code look like?

The code is two lines: the first loads Goboblo, and the second is the box on your page. The box holds a plain link to Goboblo. Guests see the link until the box has loaded, and if it can't load. This is the code for the booking box, with a made-up key:

<script async src="https://book.goboblo.com/embed/v1.js"></script>
<div data-goboblo="booking" data-key="YOUR_KEY"><style><!--.gbr-booking{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;min-height:660px;padding:24px;border-radius:14px;background:rgba(128,128,128,.14);color:inherit;text-align:center;text-decoration:none}.gbr-booking b{font-size:1.5em;line-height:1.2}.gbr-booking i{margin-top:6px;padding:14px 26px;border-radius:10px;background:#2f6bb3;color:#ffffff;font-style:normal;font-weight:600}--></style><a class="gbr-booking" href="https://book.goboblo.com/?key=YOUR_KEY" rel="nofollow"><i>Book a table</i></a></div>

Your code may look a little different. The language and the button colour follow your settings in Goboblo. The code you copy in Goboblo already has the right height, and the example only shows what the code looks like.

Rules for the code

Paste the code without changing it, and follow these eight rules.

  1. Paste the code exactly as it is. Don't remove the link inside the box: it's what guests see if the box can't load.
  2. If the code has a style inside <!-- -->, leave it there. It sits in a comment on purpose: if WordPress removes the style, no code shows on the page. The height in the style holds the space, so the page doesn't jump when the box loads.
  3. Never change the address book.goboblo.com, the parameters after ? in the addresses or the key in data-key. The key points to your restaurant in Goboblo.
  4. Don't rewrite the code as your own component that fetches data from Goboblo. With the code, your website gets Goboblo's fixes by itself, and you can see in Goboblo that the part shows.
  5. Put the box where guests see it, in the page content.
  6. If the page has several parts, the first line is enough once. Paste the second line for each part.
  7. If the page can't take code, link to Goboblo instead. The link is in Goboblo under “Not working?” and “Just the link”.
  8. If your website has a strict Content Security Policy, allow book.goboblo.com and api.goboblo.com.

Step by step in your site builder

The steps differ between site builders, but the code is the same.

Plain HTML

  1. Open the page's HTML.
  2. Paste both lines where you want the box.
  3. Save and publish, then open the page in a private window.

In a private window you see the page the way guests do, without being logged in.

React

In React the two lines go in different places.

  1. Put the first line once in the page template, for example index.html.
  2. Put the second line unchanged as HTML in the component where you want the box, with dangerouslySetInnerHTML.
  3. Don't let React redraw what's inside the box. Goboblo swaps the link for the box.

Goboblo finds the box when React draws it, also after the page has loaded. With the first line in index.html, “Check” in Goboblo also finds the code, because the page's HTML then contains the address book.goboblo.com.

<!-- index.html, once -->
<script async src="https://book.goboblo.com/embed/v1.js"></script>
// The second line from Goboblo, character for character
const GOBOBLO_BOX = `SECOND_LINE`;

export function GobobloBox() {
  return <div dangerouslySetInnerHTML={{ __html: GOBOBLO_BOX }} />;
}

Wix

  1. Open your site in the Wix Editor. Choose “Add Elements”, then “Embed Code”, “Popular Embeds” and “Embed HTML”.
  2. Choose the new box and “Enter Code”. Paste the code under “Add your code here”, press “Apply” and drag the box's edge until it is at least as tall as Goboblo shows in the steps (700 px for the booking box).
  3. Press “Publish”, then open your site.

Wix puts the code in its own frame with a fixed height, so you set the height yourself.

Squarespace

  1. Open the page and press “Edit”. Press “Add block” or “+”, then choose “Code”.
  2. Press the pencil on the block, check that the type is “HTML” and paste the code. Leave “Display Source” off.
  3. Save the page, then open it in a private window.

On Squarespace Basic and Personal, guests see only the link, because those plans stop the code. With Core or higher, the part shows.

Webflow

  1. Open the page in the Webflow Designer. Open the “Add” panel and put a “Code Embed” element on the page.
  2. Paste the code, then save and close the code window.
  3. Publish the site. The Designer shows a placeholder; the box itself shows on the live site.

Code Embed needs a paid Site plan or a paid Workspace (Core, Growth, Agency or Freelancer).

WordPress

  1. Open the page and edit it. Press “+”, search for “HTML” and choose the “Custom HTML” block.
  2. Press “Edit HTML”, paste the code and press “Update”.
  3. Press “Save” (“Update” in older WordPress), then open the page.

Using Elementor? Drag the “HTML” widget onto the page and paste the code there. On WordPress.com the code only works on a paid plan with hosting features switched on.

Other site builders

Goboblo also shows steps for Shopify, GoDaddy and “Other / not sure”. Choose your site builder on the page, and Goboblo shows the steps for it.

Building your website with AI?

Give the AI your code and the rules on this page. Only have the code? Give the AI the code and the address of this page.

Box not showing?

If guests see only the link, the box couldn't load. Check these four things:

  • Your site builder stops the code, for example Squarespace Basic and Personal, or WordPress.com without a paid plan.
  • Your website has a strict Content Security Policy. Then allow book.goboblo.com and api.goboblo.com.
  • The key or an address in the code was changed. Copy the code again in Goboblo.
  • There's nothing to show right now, for example no upcoming match. Then the link stays.

In Goboblo you can check the page: type the page address under “Check that it shows” and press “Check”. Once the part has shown on your website, Goboblo writes “Shows on” and the page address at the part.

Common questions

Does the box change when I change something in Goboblo?

Yes, available times and matches come from Goboblo, so the code only goes in once. If you chose a language for the booking box, it's in the code. If you change the language, copy the code again.

Can I have several parts on the same page?

Yes. Paste the second line for each part and the first line once.

Does the box take on my website's look?

Next match, Countdown and Button use your website's font and text colour. The booking box has its own look from Goboblo.

Don't have Goboblo yet? Create an account.

Language and region

Same page in another language. Prices in the local currency.

EnglishUnited States · $EnglishUnited Kingdom · £SvenskaSverige · krNorskNorge · NOKDanskDanmark · DKKDeutschDeutschland · Österreich · €