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 Reservation box, Button, Next game and Countdown. The names are the same as in Goboblo.
| Part in Goboblo | What guests see |
|---|---|
| Reservation box | The whole reservation, right on the page |
| Button | A small button that opens the reservation box |
| Next game | The next game, with a countdown. Good on your home page. |
| Countdown | A small clock that counts down to the next game |
The Reservation box and Button are there when you take table reservations in Goboblo, and Next game and Countdown when you show games there (see the sports bar reservation system). Read more about the restaurant reservation 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 reservation 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 color 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.
- 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.
- 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. - 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.
- 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.
- Put the box where guests see it, in the page content.
- If the page has several parts, the first line is enough once. Paste the second line for each part.
- If the page can't take code, link to Goboblo instead. The link is in Goboblo under “Not working?” and “Just the link”.
- 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
- Open the page's HTML.
- Paste both lines where you want the box.
- 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.
- Put the first line once in the page template, for example
index.html. - Put the second line unchanged as HTML in the component where you want the box, with
dangerouslySetInnerHTML. - 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
- Open your site in the Wix Editor. Choose “Add Elements”, then “Embed Code”, “Popular Embeds” and “Embed HTML”.
- 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 reservation box).
- 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
- Open the page and press “Edit”. Press “Add block” or “+”, then choose “Code”.
- Press the pencil on the block, check that the type is “HTML” and paste the code. Leave “Display Source” off.
- 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
- Open the page in the Webflow Designer. Open the “Add” panel and put a “Code Embed” element on the page.
- Paste the code, then save and close the code window.
- 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
- Open the page and edit it. Press “+”, search for “HTML” and choose the “Custom HTML” block.
- Press “Edit HTML”, paste the code and press “Update”.
- 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 turned 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 game. 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 games come from Goboblo, so the code only goes in once. If you chose a language for the reservation 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 game, Countdown and Button use your website's font and text color. The reservation box has its own look from Goboblo.