Как можем да помогнем?

Кажете накратко за какво става дума - ще се свържем с Вас по имейл.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Към началната страница

Script tag reference: all attributes and configuration sources

Complete reference of the data-rc attributes on the loader tag, of window.ReactiveChatSettings and ReactiveChat('boot') – with types, defaults, precedence and the attributes on other elements of your page.

The widget can be set up entirely through attributes on the script tag – without an inline script, and therefore also under a strict Content Security Policy. If you prefer writing JavaScript, set the same fields through window.ReactiveChatSettings or ReactiveChat('boot', …).

Design, texts, start screen, rules and tours are normally set in your account; they come from the server when the connection is established. The attributes here are for what should apply per page. All design options are described under Customisation.

Four configuration sources and their precedence

The later source wins; merging is flat (an object field such as brand is replaced as a whole, not deep-merged):

  1. Widget defaults
  2. data-rc-* attributes on the loader tag
  3. window.ReactiveChatSettings (set before the loader)
  4. ReactiveChat('boot', {...}) calls from the queue, in their order

Fields the widget does not know are discarded – so a mistyped attribute silently has no effect.

<script>
  window.ReactiveChatSettings = { locale: 'en', position: 'left' };
</script>
<script src="https://cdn.reactive.chat/loader.js"
        data-rc-site-key="SITE_KEY"
        async></script>

How attribute values are read

The name is converted from kebab case to camel case: data-rc-site-key → siteKey. The type follows from the default:

Only the tag currently being executed is read (document.currentScript). So embed the loader as a classic script, not with type="module".

Required

Connection and delivery

Language, theme, motion

Display and position

Loading and behaviour

Attributes on other elements of your page

Open the chat (works immediately, even before the core has loaded):

In detail: Open the chat from your own link or button.

Privacy text:

Excluding page text:

<aside data-rc-private>
  Internal notes the assistant should not read.
</aside>

URL parameters

The widget does not evaluate any other parameters in the address when loading.

Embedding more than once

If the loader is on the page twice (for example through a template and a tag manager), only the first one with a valid site key starts; the second does nothing. A first tag with an invalid key does not lock out a correct second one.

Next: JavaScript API · Events

Последна актуализация: