Integrations

Everything you need to connect Hokkot to your website and your systems. If something is unclear, write to us in the chat — we’ll help.

Installing the widget

Copy the code from the project card in the back office and paste it before the closing </body> tag on every page:

<script src="https://widget.hokkot.com/v1.js"
  data-project="YOUR_PROJECT_KEY" async></script>

The script is small, loads asynchronously and keeps its styles isolated, so it won’t conflict with your design.

WordPress and WooCommerce

There is a ready-made plugin for WordPress. No code to paste and no key to type in — the back office builds the archive for your project with the key already inside:

  1. In the Hokkot back office: Projects and widgets → Code, channels, access → the “Web Platform” channel → Connect → WordPress → Download the plugin (.zip).
  2. In WordPress admin: Plugins → Add New Plugin → Upload Plugin, choose the downloaded archive and click Install Now.
  3. Click Activate — the chat appears on every page of the site. Nothing else to set up.

Logged-in users and WooCommerce customers are recognized in the chat right away: name, email, phone, company and country. Tick “ID signature” when downloading — the customer is then recognized on any device, and nobody can fake someone else’s ID.

OpenCart and ocStore

There is a ready-made module for OpenCart 4, OpenCart 3 and ocStore 3. No key to type in — the back office builds the archive for your project:

  1. In the Hokkot back office: Projects and widgets → Code, channels, access → the “Web Platform” channel → Connect → OpenCart, choose the version and click Download the module (.ocmod.zip).
  2. In OpenCart admin: Extensions → Installer → Upload and choose the archive. In OpenCart 4, then click Install next to Hokkot Chat in the list below.
  3. Extensions → Extensions → Modules → Hokkot Chat → Install — the chat appears on every page of the store.

Signed-in customers are recognized in the chat right away: name, email and phone. Tick “ID signature” when downloading — the customer is then recognized on any device.

Tilda

On Tilda the code is added once — for every page of the site:

  1. In the Hokkot back office: the “Web Platform” channel → Connect → Tilda — copy the ready-made code with your project key inside.
  2. In Tilda: Site Settings → Insert Code → HTML code for the HEAD section → Edit code, paste the code and save.
  3. Click Publish all pages — the chat appears on the site.

Code insertion in Tilda is available on the Personal and Business plans.

Shopify

For Shopify the back office prepares code for your store theme: along with the chat it passes the signed-in customer’s name, email and phone.

  1. In the Hokkot back office: the “Web Platform” channel → Connect → Shopify — copy the code.
  2. In Shopify admin: Online Store → Themes → “…” → Edit code and open layout/theme.liquid.
  3. Paste the code at the end of the file, before the closing </body> tag, and click Save.

Tick “ID signature” — Shopify computes the signature on its own server, and the customer is recognized on any device.

Google Tag Manager

If the site is managed through Google Tag Manager, you don’t need to touch the code at all:

  1. Create a new Custom HTML tag and paste the widget code into it.
  2. Set the trigger to All Pages.
  3. If your site puts the user’s ID into the dataLayer, Hokkot picks it up automatically — the operator will see which account is writing.
  4. Publish the container.

The project card in the back office has a ready-made GTM tab with both tags, so you only need to copy them.

Identifying signed-in users

Pass user data with attributes on the script tag, or from your own code:

<script>
  window.LiveChat.identify({ id: '58213', name: 'Mark', email: '[email protected]' });
</script>

The operator sees the name, email and the user’s ID on your site in the customer card.

JavaScript API

  • window.LiveChat.open() and close() — open or close the chat from your own code.
  • Any element with the data-livechat-open attribute opens the chat on click — perfect for “Contact support” buttons.
  • window.LiveChat.identify() — tell the chat who the user is.

Webhooks

Hokkot sends a POST request to your URL when something happens:

  • conversation.created a new conversation started
  • message.created a new message
  • conversation.assigned an operator was assigned
  • conversation.closed the conversation was closed
  • conversation.rated the customer rated the chat

Every request is signed with HMAC-SHA256 using your secret, so you can verify it really came from Hokkot.

CRM

Two ways to show CRM data to operators:

  • Link to the customer card. Set a template like https://crm.example.com/users/{siteUserId}, and the operator opens the profile in one click.
  • Fields from your CRM. Hokkot sends a signed request with the customer’s data to your URL, and the fields you return — balance, status, number of orders — appear next to the chat.

HubSpot connects in the back office: chat customers become HubSpot contacts, conversations are saved as notes, and the contact card is shown next to the conversation.

Want to see it on your own site?

Write to us right here — the chat button is in the corner. We’ll answer your questions and help you get set up.