Sell gift cards and suggest products at checkout.Learn more ›
Skip to content

Codes ​

Codes adds CSS (appearance) or JavaScript (another service's script, such as a chat widget) to every page of your site. For Google Analytics, Tag Manager or the Facebook Pixel, use the marketing extensions instead, no code needed.

What do you want to do? ​

Add a chat widget or a third-party script ​

For example Crisp, Tawk.to, Tidio, a heatmap or an unlisted ad pixel.

  1. Copy the service's install snippet (the full <script> tag).
  2. Click Create a code and name it ("Crisp chat").
  3. In Injection, choose JavaScript and the Code location the service asks for (usually In the head tag).
  4. Paste the snippet into the Code editor, then save.

The code loads across the site as soon as it's saved.

Code type and placement within the page.Code type and placement within the page.

Adjust the look with CSS ​

The dashboard is shown in French, with English captions.

Read the video steps
  1. — In Codes, click “Create code”.
  2. — The snippet is active and uses CSS by default.
  3. — Click the name field, then enter Badge promo.
  4. — Click the editor and add a rule scoped to .promo-note.
  5. — The rule slightly adjusts the badge letter spacing.
  6. — Click “Save”.
  7. — The CSS snippet is saved and visible.
  8. — Badge promo appears as CSS with Visible status.

Create a code keeping CSS style and In the head tag, write your rules in the Code editor, then save. First, check whether the setting already exists in Logo, colors and fonts or the editor's style panel.

Ask Assistant Vivlab for code ​

In a code's form, click Code assistant and describe the result you want and the pages concerned: the assistant reads your pages to target the right elements. Review the code written in the editor, then save (nothing saves before).

A specific request entered in Assistant code before sending.A specific request entered in Assistant code before sending.

Switch a code off without deleting it ​

Open the code and, in the Status card, turn off Enable / Disable, then save. It is kept, Inactive, and no longer loads. For several codes, tick them and use More actions (activate, deactivate, delete, export to CSV).

Good to know ​

  • A faulty code can break the site (blank page, blocked scripts, broken forms). Test it; if a problem shows up live, disable it before fixing it.
  • Cookie consent: these scripts load on arrival, outside Vivlab's cookie banner (which only covers the marketing extensions). If your tool sets cookies, use its own consent mechanism.
  • Not a developer and your tool isn't listed? Open a Support request.
All settings
  • Code description (optional): helps find the code.
  • Code type: CSS style (in a <style> tag, <link> tags accepted), JavaScript (in a <script> tag, full <script> snippet accepted) or Noscript (browsers without JavaScript).
  • Code location: In the head tag (styles, meta tags, tracking) or In the body tag (at the start of the page body).

Documentation crafted with ❤️ by our in-house team.