How do I place the Briq Widget on my website?

Modified on Thu, 15 Oct at 1:52 PM

Relevant to: anyone who's responsible for the website


In this article, we discuss how to place the widget on your marketing website. If this method does not work for you, we recommend discussing it with your Onboarding Manager. 

We always recommend having the implementation done by the webmaster of your marketing website. It requires some technical knowledge of your marketing website.


Step 1: Prepare the Script

Copy the script to a text document and complete the script by following the steps below.

<script src="https://widgetcdn.briqbookings.com/widget/widget.js"
    data-domain="bu-domain"
async></script>
Please note: earlier versions of the widget-script used a <div> element. If your website uses a widget-script with a <div>, apply data-attributes to the <div>, not the script.


1. Linking the widget to your webshop

The second line of the script contains the data-domain attribute. This data-domain is the domain of the webshop. You need to replace the text "bu-domain" with the domain of your webshop. You can find this in Briq (briq.app > Settings > General) or ask your Onboarding Manager to provide it to you. For existing customers, the data-domain is the domain name of your current environment.

2. Making the widget match your website

It's possible to configure the widget so it better matches your website's brand guidelines. Find the most commonly used attributes for managing the widget appearance below. Add those attributes after the data-domain attribute in the script.

 

Colors

Briq provides 4 colors to configure for the widget:

  • data-color-1-base
  • data-color-1-contrast
  • data-color-2-base
  • data-color-2-contrast

A color must be set as a HEX code in double quotes; e.g. data-color-2-base="#fdc743" means the "Add to cart" button will be yellow.

Tip: Look up the hex color codes of your website so the widget fits nicely with your website's overall look.


Button text

The data-button-text attribute is used to customize the text in the widget button. By default, it says Reserve, but you might prefer Tickets or Book Now. For example, use data-button-text="tickets" to make the widget button say Tickets.


Price display

The data-price-display attribute is used to specify how prices are displayed in the widget. Allowed values are Total (default value, the widget will display aggregated prices) or PerPerson (the widget will display prices per person). For example, use data-price-display="PerPerson" to make the widget show prices per person.


A list of all possible data-attributes for the widget is available here. If something is missing, let your contact person at Briq Bookings know and it might become available soon!


Step 2: Add the Script to the head of your website

Copy the entire script, including the added elements, and place it in the <head> of your website. Once you have done this, the widget will be live on your marketing website.


Conflicts with cookie bar or anti spam plugins

Some cookie bars or plugins block the widget because it temporarily withholds information about the booking. In that case, make sure that bw-bu-domain is marked as an essential cookie (with bu-domain again replaced with the domain of the shop).

It may also be that a cookie bar or plugin is affecting the widget's operation; in that case, async can be removed from the script so that the widget loads before all other scripts. Do not do this by default, as it is detrimental to website load times. 


Click here to see how to direct visitors to specific deals or activities in the widget.


Should you have any questions about this topic, please do not hesitate to contact us via support@briqbookings.com or in the chat in Briq.app.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article