Install the Cenaly code on your site (Tilda, WordPress, GTM, Shopify), check the tag and set up CSP
Install the shared widget code on your site and make sure it is linked to the right location and is not blocked by the site's security policy.
What you need to get started#
- In “Marketing → My website” the right location is selected, your site address is filled in and the line
<script src="…/site/v1.js" data-domain="…" async></script>is copied. - You have administrator access to the site template, the website builder or the Google Tag Manager container.
- The site opens over HTTPS.
Installation on popular platforms#
The same tabs with the code are available right in the panel: “Marketing → My website → Install code” (?panel=install). You can send a contractor a direct link with the platform anchor (#tilda, #wordpress, #google-tag-manager, #shopify and others).
General rules for any platform:
- paste the tag once into the shared template of the whole site, not into a single page;
- on website builders (Tilda, Wix, Webflow) be sure to republish the site after saving the code;
- check the published site, not the editor preview;
- if a cache plugin or a CDN sits in front of the site, purge the cache after pasting.
HTML#
For hand-built sites, landing pages and static site generators:
- Copy the code line in “Marketing → My website”.
- Paste it inside
<head>or before the closing</body>of the site's shared template (if there is no shared template — into every HTML file). - Upload the files to the server and press “Check install” in the panel.
Google Tag Manager#
The way to go when a GTM container is already installed on the site but you have no access to the source template:
- In Google Tag Manager open Tags → New and choose the Custom HTML type.
- Paste the code line.
- Choose the All Pages trigger.
- Save the tag.
- Press Submit and choose to publish a new container version.
- Finish publishing with the Publish button. Google's guide.
WordPress#
- Sign in to the
your-site/wp-admindashboard with administrator rights. - Open Plugins → Add New and install a plugin that inserts code into the header, for example WPCode.
- Paste the shared tag into that plugin's Header field.
- Save the changes.
- If you use a caching plugin (WP Rocket, W3 Total Cache and the like), purge the cache.
- Press “Check install” in the “My website” section.
You don't need a separate plugin for each widget (the Cenaly Consent plugin only installs the standalone cookie-banner tag — see Cookies and consent).
Tilda#
- In the Tilda project list open Site Settings (the settings of the whole project, not of a single page).
- Go to the More section (“Code Injection”) → the HTML code for the HEAD section field.
- Paste the code line and save the changes.
- Republish all pages of the project (if you need the code on one page only, paste it into Page Settings → Code Injection and republish that page).
- Press “Check install”.
Official guide: inserting HTML in Tilda.
Wix#
Custom code in Wix works only on a published site with a connected domain.
- In the Wix dashboard open Settings → Development & integrations → Custom Code.
- Press + Add Custom Code, paste the script line and give it a name.
- Choose All pages and loading once per visit.
- Choose the Head placement.
- Press Apply.
- Open the published site and check the widget. Wix guide.
Shopify#
- In the Shopify admin open Online Store → Themes.
- Press … → Duplicate on the active theme to keep a backup copy.
- Press … → Edit code and open the Layout →
theme.liquidfolder. - Paste the line before
</head>(or before</body>) and press Save. - Press “Check install”.
Webflow#
Inserting code requires a suitable Workspace or an active Site plan. Check that the field is available in Webflow's help.
- Open the project's Site settings → the Custom code tab.
- Paste the
<script …></script>line itself into the Head code field (don't add<html>or<head>wrappers) and save. - Press Publish — the script does not run in the Designer or in preview.
- Press “Check install”.
Squarespace#
You need a plan with Code Injection. This panel adds code to the shared template; a Code Block works only inside a single page. Squarespace guide.
- Open the Code Injection panel in the site settings.
- Paste the script line into the Header field and press Save.
- Press “Check install”.
Installation check#
To make sure the script is visible and linked to the right location:
- In “Marketing → My website” check the site address field in the “🌐 Your website” block.
- Press “Check install”.
- Compare the response status:
- “Widget code found on the site” — the single tag is installed correctly;
- “Found only separate widget tags” — older standalone scripts are in place, without the single tag;
- “The code on the site belongs to another location” —
data-domainholds another location's address; - “No widget code found on this page” — the tag was not found in the page's source HTML.
For locations with a site address, at least one enabled widget and a tag found earlier, the server repeats the check automatically once a week. If the tag disappears from the markup in two control checks in a row (for example, after a site theme change), a card about the lost installation arrives in the Team chat, and the third step of the “🌐 Your website” block turns red. A site that is temporarily unavailable (a timeout, a 502 error) is not counted as a broken installation.
You can check any site without signing in on the public /en/tools/site-check page: it shows the pixels it found, the consent banner and our tag.
What the installation check does not see#
The server-side check downloads only the source HTML of the one URL you specified, without running a browser or JavaScript:
| Situation | Check response | How to check for real |
|---|---|---|
| The tag is loaded through Google Tag Manager or another JS loader | “No widget code found on this page” | Open the site in a browser (or the Network tab → filter site/v1.js) |
| A client-side SPA (React, Vue) that builds the markup in the browser | “no code” | Put the tag into the server-side index.html and check with your own eyes on the site |
| The tag was placed on the home page but forgotten in the catalog or blog template | Only the URL from the “Website address” field is checked | Enter the address of an inner page and run the check again |
The site works over http:// only, or is behind a password, a geo-filter or bot protection |
A page read error | The check only goes over HTTPS without authentication — open the site yourself |
| The HTML page is heavier than 512 KB and the tag sits at the very bottom | The first 512 KB are read | Place the script in <head>, at the start of the markup |
| More than three redirects in a row | A check error | Enter the final page address after the redirects |
| The CMS or CDN cache has not been purged | “no code” | Purge the site cache and repeat the check |
A site with Content-Security-Policy#
If your web server sends a strict Content-Security-Policy header, the browser may silently block the widget bundles from loading (the console shows Refused to load the script errors). A ready-made snippet with your brand's domains is in “Marketing → My website”, in the “Does your site send a Content-Security-Policy?” block under the install code.
Choose one of three ways to set it up on your server:
Option 1 — a one-time nonce on the tag#
Generate a random nonce on the server for every response (a permanent string gives no protection) and pass it both in the header and in the tag attribute:
Content-Security-Policy: script-src 'nonce-r4nd0m...'
<script nonce="r4nd0m..." src="URL-FROM-THE-INSTALL-CODE" data-domain="VALUE-FROM-THE-INSTALL-CODE" async></script>
The loader reads the nonce from its own tag and passes it on to the widgets' child scripts. Also add the permissions for network requests, styles and frames from the table below.
Option 2 — 'strict-dynamic'#
Content-Security-Policy: script-src 'nonce-r4nd0m...' 'strict-dynamic'
The trust in the main tag automatically extends to the widget scripts it loads. Add the other directives (connect-src, style-src, frame-src, img-src) according to the table below.
Option 3 — an explicit list of domains (for website builders without a nonce)#
- In the “Does your site send a Content-Security-Policy?” block copy the rules for your brand and location.
- Add the listed sources to the site's existing policy. Don't replace all of the server's rules with it: the site may need other sources too.
- Open the published site and check the browser console.
| Directive | Why it is needed |
|---|---|
script-src |
Loading the scripts of all widgets from the CDN |
connect-src |
Sending requests, appointments, orders, telemetry and the chat WebSocket |
img-src |
Product and dish photos in the online ordering widget |
frame-src |
Opening the storefront, the Help center and legal documents in an embedded <iframe> |
style-src 'unsafe-inline' |
Styling the widget windows inside an isolated Shadow DOM (script-src needs neither 'unsafe-inline' nor 'unsafe-eval') |
Keep in mind the limitations:
- The lazy parts of popups, the consent banner, the multibutton and form interception receive the nonce through their own loaders.
- On a website builder you may have no access to HTTP headers or nonce generation. Ask the platform how you can change the CSP.
- The separate script of the “Notify when back in stock” button (
stock/form-v1.js) is installed outside the single loader and does not carry thenonceyet — for it, list the CDN domain inscript-src. - For the Call from the site widget, microphone access is governed by HTTPS and the
Permissions-Policyheader, not bymedia-src.
Limitations#
A successful tag check confirms that the tag is present in the HTML. It does not check the whole customer journey: an appointment, an order or a submitted request. After installation, perform the action you need on the site and check the result in the panel.
Troubleshooting#
If the code is not found, check the site's publication and cache. For GTM and forms built by JavaScript, check in the browser.
If the code is found but the button is missing, check that the widget is on, its display conditions, whether the add-on is available, and CSP errors in the console.
Frequently asked questions#
Do I need to paste the tag on every page?#
The shared template is enough. If there is no shared template, add it to every page that needs it.
The check says “no code”, but the widget works. Is that an error?#
This happens with GTM and other JavaScript loaders. The server does not run them; check the published page in a browser.