Skip to content

How to add a chatbot to your website

Adding ConGreeto to a website is one line of code, pasted just before the closing </body> tag or into your platform's footer-code box. No developer is needed. Below are the exact steps for 33 platforms, the same ones the install assistant in your dashboard walks you through.

Once the code is on your site, the chatbot answers visitors from your own content and turns each conversation into a scored lead. See what the chatbot does once installed.

The code you paste

Your dashboard shows this snippet with your own chatbot's token in place of YOUR-CHATBOT-TOKEN. Copy it from there, not from this page.

<script
  src="https://widget.congreeto.com/widget.v1.js"
  data-token="YOUR-CHATBOT-TOKEN"
  async
></script>

Website builders and e-commerce platforms

How to add a chatbot to WordPress

  1. Install a header/footer plugin

    Plugins → Add New

    Search for "WPCode" (or "Insert Headers and Footers"), then click Install Now and Activate. Using a plugin means your snippet survives theme updates — pasting into a theme file does not.

  2. Open the footer box

    Code Snippets → Header & Footer

    In the left sidebar, open the plugin's Header & Footer screen.

  3. Paste the snippet into Footer

    Paste into the Footer box — not Header, not Body. Then click Save Changes.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  4. Clear your cache

    If you run WP Rocket, W3 Total Cache, LiteSpeed or a host-level cache (SiteGround, WP Engine, Kinsta), purge it now or you will keep seeing the old page without the widget.

Prefer the plugin route. If you would rather edit the theme directly, it is Appearance → Theme File Editor → footer.php, immediately before </body> — but use a child theme, or the next theme update will erase it. Block/FSE themes hide that editor under Tools → Theme File Editor.

Not showing up? Common WordPress issues
  • Snippet saved but no widget appearsA caching plugin or host cache is still serving the old HTML. Purge every cache layer, then hard-reload with Ctrl/Cmd+Shift+R.
  • The widget vanished after a theme updateThe snippet was pasted into the parent theme's footer.php. Re-add it via the header/footer plugin so updates cannot touch it.
  • WordPress strips the <script> tag on saveThe block editor sanitises raw HTML, and non-admin roles cannot post unfiltered HTML. Use the header/footer plugin rather than a block, and save as an administrator.

Official WordPress documentation: wordpress.org · developer.wordpress.org

How to add a chatbot to Shopify

  1. Open your theme's code

    Online Store → Themes → ⋯ → Edit code

    From Shopify admin, use the ⋯ menu on your CURRENT (live) theme.

  2. Open theme.liquid

    Layout → theme.liquid

    In the file tree on the left, open the Layout folder and click theme.liquid.

  3. Paste immediately before </body>

    Scroll to the very bottom, put the snippet on the line just above the closing </body> tag, then click Save.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>

Duplicate your theme before editing so you have a one-click rollback. If you sell through a headless storefront (Hydrogen), install it in your Hydrogen app instead — ask me and I will walk you through that path.

Not showing up? Common Shopify issues
  • Widget shows on the storefront but not at checkoutCheckout is a separate, locked-down surface that theme.liquid does not control. Expected behaviour on every plan below Shopify Plus. Plus merchants can add it via checkout.liquid.
  • Edited the theme but nothing changedThe edit landed on a draft/unpublished theme. Confirm the theme is marked Current, or publish the one you edited.

Official Shopify documentation: shopify.dev · help.shopify.com

How to add a chatbot to Wix

  1. Open Custom Code

    Settings → Advanced → Custom Code

    From your Wix dashboard, go to Settings, then Custom Code under Advanced.

  2. Add a new code block

    Click "+ Add Custom Code" in the Body - end section.

  3. Paste and target every page

    Paste the snippet, name it "ConGreeto", set Add Code to Pages to "All pages", and confirm Place Code in is "Body - end". Click Apply.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  4. Publish

    Custom code only runs on the PUBLISHED site — click Publish, then check the live URL, not the editor preview.

Custom Code needs a paid Wix plan with a connected domain. On the free wixsite.com subdomain the section is unavailable, and no snippet will work.

Not showing up? Common Wix issues
  • Custom Code section is missing or greyed outThe site is on the free plan or has no domain connected. Upgrade to a paid plan and connect a domain; the section then appears.
  • Works on the live site but not in the Wix editor previewWix deliberately does not execute custom code in the editor. Test on the published domain — this is expected, not a fault.

Official Wix documentation: support.wix.com

How to add a chatbot to Squarespace

  1. Open Code Injection

    Settings → Advanced → Code Injection

    In Squarespace 7.1 this is under Website → Website Tools → Code Injection.

  2. Paste into Footer

    Paste into the FOOTER box (not Header), then click Save.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>

Code Injection requires a Business plan or higher. Personal-plan sites cannot run third-party scripts at all.

Not showing up? Common Squarespace issues
  • Code Injection is not in the menuThe site is on the Personal plan. Upgrade to Business or Commerce.
  • Widget missing in the site editorSquarespace disables injected code inside the editor. Check the live site in a normal browser tab.

Official Squarespace documentation: support.squarespace.com

How to add a chatbot to Webflow

  1. Open Custom Code

    Site settings → Custom code

    Open your project, then Site settings (not Page settings).

  2. Paste into Footer Code

    Paste into "Footer code" — the box labelled Before </body> tag — and Save.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Publish

    Custom code only ships on publish. Click Publish and select your live domain.

Custom code requires a paid Site Plan. It does not run on webflow.io staging domains on free plans.

Not showing up? Common Webflow issues
  • Saved the code but the live site has no widgetThe project was never re-published after saving. Hit Publish → select your domain. Saving alone changes nothing live.

Official Webflow documentation: help.webflow.com

How to add a chatbot to Ghost

  1. Open Code injection

    Settings → Advanced → Code injection

    From Ghost admin, open Settings, scroll to Advanced and choose Code injection. You need an Administrator or Owner account — Editors and Contributors cannot see this screen.

  2. Paste into Site Footer

    There are two boxes, Site Header and Site Footer. Use Site Footer — its contents go immediately before </body> on every page. Then click Save.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Check the live site, not the preview

    Code injection does not run inside the Ghost admin preview. Open your published site in a normal browser tab to confirm.

Site-level Code injection applies to every page. Ghost also has per-post code injection in the editor's Post settings — do not use that for the widget, or it will only appear on the one post.

Not showing up? Common Ghost issues
  • Widget shows on posts but not the homepageThe snippet went into a single post's code injection instead of the site-level Site Footer. Move it to Settings → Advanced → Code injection → Site Footer.
  • Nothing appears after savingGhost(Pro) serves pages through a CDN cache. Hard-reload with Ctrl/Cmd+Shift+R; allow a minute for the cache to roll over.
  • Code injection screen is missingThe signed-in user is not an Administrator or Owner. Sign in as the site owner, or ask them to paste the snippet.

Official Ghost documentation: ghost.org · ghost.org

How to add a chatbot with Google Tag Manager

  1. Create a Custom HTML tag

    Tags → New → Tag Configuration → Custom HTML

    In your GTM workspace, create a new tag and pick Custom HTML.

  2. Paste the snippet

    Paste into the HTML box. Leave "Support document.write" unchecked.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Trigger on every page

    Under Triggering choose "All Pages" (Page View), name the tag "ConGreeto", and Save.

  4. Submit and publish

    Click Submit → Publish. Until you publish, the container serves the previous version.

Great universal option if your site already runs GTM — it works regardless of what the site itself is built with. One caveat: visitors who block tag managers will not see the widget.

Not showing up? Common Google Tag Manager issues
  • Tag fires in Preview mode but not on the live siteThe container version was never published. Submit → Publish in GTM.

Official Google Tag Manager documentation: support.google.com

How to add a chatbot to a GoDaddy website

  1. Open the site editor

    My Products → Websites + Marketing → Edit site

    Open the site you want the widget on and enter the editor.

  2. Add an HTML section on every page

    Add Section → search "HTML" → Add

    GoDaddy's builder has no site-wide code box on most plans, so the HTML section has to be added to each page you want the widget on. Put it at the very bottom of the page.

  3. Paste into Custom Code

    Paste the snippet into the section's Custom Code field.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  4. Publish

    Click Publish. Custom code does not run inside the editor preview.

Be aware of a real limitation here: GoDaddy renders custom HTML sections inside an iframe, isolated from the rest of the page. A chat widget added that way can end up trapped in the section's box rather than floating over the site. If that happens, the reliable fix is to move the site onto a plan or platform that offers a genuine site-wide footer code injection — or point your domain at a builder that does. Check GoDaddy's current documentation first, as the plans that expose site-wide code have changed over time.

Not showing up? Common GoDaddy Websites + Marketing issues
  • Widget renders inside a small box mid-page instead of floatingGoDaddy sandboxes custom HTML sections in an iframe. This is a platform limitation, not a snippet problem — a site-wide code injection option is required for a floating widget.
  • Widget only on one pageThe HTML section was added to a single page. Repeat the HTML section on every page, or use a plan with site-wide code.
  • Nothing shows in the editorThe builder does not execute custom code in preview. Publish, then open the live site in a normal tab.

Official GoDaddy Websites + Marketing documentation: www.godaddy.com

How to add a chatbot to Duda

  1. Open the site's settings

    Side panel → More → Settings → Head HTML

    In the editor's side panel, open More, then Settings, then Head HTML.

  2. Paste into Body End HTML

    The screen is called Head HTML but contains several fields. Use Body End HTML — that is the one rendered immediately before </body> on every page. Click Save.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Republish the site

    Click Publish. Site-wide code is applied at publish time.

Dev mode is an equivalent route if you prefer it: hamburger menu → Dev mode → Site HTML/CSS → body-end.html, paste on the last line, Save and Done. Both write to the same place. Avoid dropping the snippet into an HTML widget placed on the canvas — that only covers the page it sits on.

Not showing up? Common Duda issues
  • Snippet saved but not on the live siteDuda applies site-wide code when the site is published. Click Publish, then hard-reload the live URL.
  • Widget only on one pageThe snippet went into an HTML widget on the canvas rather than Body End HTML. Move it to Settings → Head HTML → Body End HTML.

Official Duda documentation: support.duda.co · developer.duda.co

How to add a chatbot to Framer

  1. Open custom code

    Site Settings → General → Custom Code

    Open the project's Site Settings, then General, then Custom Code.

  2. Reveal all four slots

    Click Show Advanced at the bottom of the Custom Code section. It expands from two boxes to four: head start, head end, body start and body end.

  3. Paste into End of <body>

    Use the body end slot so the widget loads after your page content.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  4. Publish

    Click Publish. Custom code runs on the published site, not in the canvas.

Use the project-level Site Settings, not a single page's custom code — page settings apply to that page only.

Not showing up? Common Framer issues
  • Only two code boxes are visibleThe advanced slots are collapsed by default. Click Show Advanced to reveal head start / head end / body start / body end.
  • Nothing appears while designingFramer does not execute custom code on the editing canvas. Publish and test the live URL.

Official Framer documentation: www.framer.com

How to add a chatbot to BigCommerce

  1. Open Script Manager

    Settings → Data solutions → Script Manager

    On multi-storefront stores this lives under the channel's settings for the storefront you are installing on.

  2. Create a script

    Click Create a Script. Set Location on Page to Footer, Select pages to All pages, and Script type to Script.

  3. Paste the snippet and save

    Paste into the Scripts contents box, then Save.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>

Script Manager is the supported route and survives theme updates. Editing the Stencil theme's footer template works too, but a theme update will overwrite it.

Not showing up? Common BigCommerce issues
  • Script saved but not on the storefrontIt was scoped to specific pages, or created on a different channel. Set Select pages to All pages and confirm you are on the right storefront channel.
  • Script Manager is missingThe store is on the legacy Blueprint theme platform, where Script Manager is unavailable. Add the snippet to the Blueprint theme's footer template instead.

Official BigCommerce documentation: developer.bigcommerce.com

How to add a chatbot to Bubble

  1. Open the app's SEO / metatags settings

    Settings → SEO / metatags

    In the Bubble editor, open Settings and choose the SEO / metatags tab.

  2. Paste into the page body script

    Scroll to "Script/meta tags in body" and paste the snippet there. It is applied to every page of the app. Header scripts also exist — use the body one.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Deploy to live

    Changes sit in the development version until you deploy. Use Deploy to live, then test your live domain rather than the version-test URL.

Bubble is a single-page app: it swaps page content without a full reload. The widget mounts outside Bubble's root element, so it survives those transitions with no extra workflow or plugin.

Not showing up? Common Bubble issues
  • Works on version-test but not the live appThe change was never deployed. Click Deploy to live in the editor, then retest the live domain.
  • Widget missing on one pageThe snippet went into that page's own HTML header rather than app-wide settings. Move it to Settings → SEO / metatags → Script/meta tags in body.

Official Bubble documentation: manual.bubble.io

JavaScript frameworks

How to add a chatbot to a Next.js site (App Router)

  1. Open your root layout

    That is app/layout.tsx (or app/layout.js).

  2. Import next/script and render it inside <body>

    strategy="afterInteractive" loads the widget once the page is interactive, so it never blocks your first paint.

    import Script from "next/script";
    
    // ...inside <body> of your root layout
    <Script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      strategy="afterInteractive"
    />
  3. Restart and check

    Restart the dev server, then load a page — the launcher appears bottom-right.

Do not put a raw <script> tag in a Server Component — React strips it. next/script is the supported route. If you only want the widget on some routes, move the <Script> into that route segment's layout instead.

Not showing up? Common Next.js (App Router) issues
  • Hydration mismatch warning in the consoleThe snippet was inlined into JSX rather than loaded via next/script. Use the <Script src=... strategy="afterInteractive" /> form shown above.
  • Works in dev, missing in productionA Content-Security-Policy header in next.config.js or middleware blocks the script origin. Add the widget host to your script-src and connect-src directives.

Official Next.js (App Router) documentation: nextjs.org · nextjs.org

How to add a chatbot to a Next.js site (Pages Router)

  1. Open pages/_app.tsx

    This wraps every page, so the widget loads site-wide.

  2. Render next/script alongside your page component

    Return a fragment containing both <Component {...pageProps} /> and the <Script>. Import Script from 'next/script' and give it strategy="afterInteractive" so it loads once the page is usable.

    import Script from "next/script";
    
    // ...inside <body> of your root layout
    <Script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      strategy="afterInteractive"
    />
  3. Restart the dev server and rebuild

    _app.tsx is not hot-reloaded reliably. Stop the dev server, start it again, and for production run your build and redeploy.

You can also use pages/_document.tsx, but _app.tsx is simpler and supports next/script strategies. If you do use _document.tsx, the tag belongs inside <body> after <Main />, never inside <Head>, and next/script's beforeInteractive is the only strategy valid there.

Not showing up? Common Next.js (Pages Router) issues
  • Widget appears on the first page load, then disappears when navigatingThe snippet was added to one page component instead of _app.tsx, so it unmounts on client-side navigation. Move it to pages/_app.tsx, which persists across route changes.
  • 'document is not defined' during buildThe snippet was placed in module scope where it runs during server rendering. Render it through next/script rather than injecting the tag yourself.

Official Next.js (Pages Router) documentation: nextjs.org · nextjs.org

How to add a chatbot to a React app

  1. Open index.html

    Vite: index.html in the project root. Create React App: public/index.html.

  2. Paste before </body>

    Put it just above the closing </body> tag, after the <div id="root"></div>.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Rebuild

    Restart the dev server (or re-run your build) and reload.

The widget mounts itself outside your React tree, so it survives client-side route changes and needs no component wiring.

Not showing up? Common React (Vite / CRA) issues
  • Widget disappears when navigating between routesSomething in the app is clearing document.body on route change. Rare — tell me what router you use and I will help you pin it down.

Official React (Vite / CRA) documentation: vite.dev

How to add a chatbot to Angular

  1. Open src/index.html

    This is the only HTML shell Angular serves — component templates will not work for this.

  2. Paste before </body>

    Directly under <app-root></app-root>, above the closing </body> tag.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Rebuild

    Stop and re-run `ng serve` (or `ng build`) — index.html is not hot-reloaded reliably.

Do not add the snippet to a component template; Angular sanitises <script> tags out of templates.

Not showing up? Common Angular issues
  • Script tag added to a component template does nothingAngular's template sanitiser removes script elements by design. It must go in src/index.html.

Official Angular documentation: angular.dev

How to add a chatbot to a Vue or Nuxt site

  1. Plain Vue (Vite): edit index.html

    Paste before </body> in the project-root index.html, then restart.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  2. Nuxt 3: use nuxt.config.ts instead

    Add the script under app.head.script with body: true — app: { head: { script: [{ src: '<the src from the snippet>', 'data-token': '<the token from the snippet>', async: true, body: true }] } }

In Nuxt, useHead() in app.vue is an equally valid route if you prefer keeping it in code. Whichever you choose, the widget mounts outside Vue's root element — it needs no component, no plugin and no <ClientOnly> wrapper.

Not showing up? Common Vue / Nuxt issues
  • Nuxt: the tag renders into <head> and the widget never mountsbody: true was omitted, so Nuxt puts the script in the document head. Add body: true to the script entry in nuxt.config.ts.
  • Plain Vue: edited index.html but nothing changedVite caches the HTML entry; the dev server was not restarted. Stop and restart the dev server, then rebuild before deploying.
  • Widget disappears after navigating between routesThe snippet was placed inside a single-page component that unmounts. Move it to index.html (Vue) or nuxt.config.ts (Nuxt) so it lives outside the router.

Official Vue / Nuxt documentation: nuxt.com · nuxt.com

How to add a chatbot to a Svelte or SvelteKit site

  1. Open src/app.html

    SvelteKit's HTML shell — it wraps every route.

  2. Paste before </body>

    Just below %sveltekit.body%, above the closing </body> tag.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Rebuild and redeploy

    app.html is baked in at build time, so the change only reaches visitors after your next build and deploy.

src/app.html is the only file every route shares. Putting the tag in +layout.svelte works too, but app.html keeps it outside Svelte's lifecycle entirely, which is simpler and survives every navigation.

Not showing up? Common Svelte / SvelteKit issues
  • Works in dev, missing in productionThe site was deployed from a build made before app.html was edited. Run the build again and redeploy.
  • Edited +page.svelte and the widget flickers away on navigationA per-page script is destroyed when SvelteKit swaps routes. Move the tag into src/app.html.

Official Svelte / SvelteKit documentation: svelte.dev · svelte.dev

How to add a chatbot to Astro

  1. Open your base layout

    Usually src/layouts/Layout.astro — whichever layout every page shares.

  2. Paste before </body>

    Add the tag with is:inline so Astro ships it as-is instead of bundling it.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>

Without is:inline, Astro processes and bundles the script, which can rewrite the external src and drop the data-token attribute. is:inline tells Astro to emit the tag exactly as written — that is the whole trick on this platform.

Not showing up? Common Astro issues
  • The script tag is in the HTML but the src points somewhere unexpectedis:inline was omitted, so Astro bundled and rewrote the script. Add is:inline to the <script> tag and rebuild.
  • Widget only shows on the home pageThe snippet went into one .astro page rather than the shared layout. Move it into the layout in src/layouts/ that every page imports.
  • Nothing changes after editingAstro output is static; the built site has not been regenerated. Run the build again and redeploy.

Official Astro documentation: docs.astro.build · docs.astro.build

Static sites and hosting

How to add a chatbot to a plain HTML website

  1. Open your HTML file

    Start with index.html, or whichever page you want the widget on.

  2. Paste immediately before </body>

    Scroll to the bottom and put the snippet on the line just above </body>.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Repeat on every page

    Static sites have no shared layout, so each .html file needs its own copy. If you use PHP includes or a static-site generator, add it to the shared footer include instead and it covers everything at once.

  4. Upload

    Re-upload the edited files over FTP / cPanel / your host's file manager.

The snippet is identical on every page — one script tag, nothing else to configure.

Not showing up? Common Plain HTML / CSS issues
  • Widget shows on the homepage onlyThe snippet was only added to index.html. Add it before </body> on every page, or move it into a shared footer include.
  • Nothing happens when opening the file directlyOpening via file:// blocks the script from loading. Test over http:// — upload it, or run a local server.

Official Plain HTML / CSS documentation: developer.mozilla.org

How to add a chatbot to a Netlify site

  1. Add it to your source, not the dashboard

    Netlify serves whatever your build outputs — put the snippet before </body> in your HTML shell or framework layout and commit it.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  2. Push to deploy

    Netlify rebuilds on push. Check the deploy log shows Published before testing.

Tell me which framework you build with and I will give you the exact file. If you use Netlify Snippet Injection (Site settings → Build & deploy → Post processing), pasting into "Insert before </body>" also works without a rebuild.

Not showing up? Common Netlify issues
  • Deploy succeeded but the widget is missingThe deploy that published was queued before the commit landed, or a branch deploy was checked instead of production. Open Deploys, confirm the newest production deploy is Published, and test the primary domain rather than the deploy preview URL.
  • Snippet injection saved but has no effectSnippet injection is applied during post-processing, which is skipped on already-cached deploys. Trigger a fresh deploy with Clear cache and deploy site.
  • Console shows a Content-Security-Policy errorA CSP set in netlify.toml or _headers does not allow our script origin. Extend script-src and connect-src in that file to include the widget host, then redeploy.

Official Netlify documentation: docs.netlify.com · docs.netlify.com

How to add a chatbot to a GitHub Pages site

  1. Edit your layout

    Jekyll: _layouts/default.html. Plain HTML repo: each .html file. Paste before </body>.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  2. Commit and push

    Pages rebuilds automatically; give it a minute, then hard-reload.

Not showing up? Common GitHub Pages issues
  • Pushed but the site is unchangedThe Pages build is still running or failed. Check the Actions tab for the pages-build-deployment run.

Official GitHub Pages documentation: docs.github.com

Server-rendered frameworks and CMSs

How to add a chatbot to a Spring Boot site

  1. Open your shared layout template

    Typically src/main/resources/templates/layout.html — or the fragment every page includes for its footer.

  2. Paste before </body>

    Plain HTML works as-is; Thymeleaf will not touch a script tag with no th: attributes.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Rebuild and restart

    Templates are packaged into the jar — re-run the app so the change ships.

If Spring Security's CSP header is enabled, add the widget host to script-src or the browser will block it silently.

Not showing up? Common Spring Boot (Thymeleaf) issues
  • Console shows a Content Security Policy violationSpring Security sets a restrictive CSP by default in some setups. Add the widget origin to script-src and connect-src in your CSP config.

Official Spring Boot (Thymeleaf) documentation: docs.spring.io

How to add a chatbot to a Laravel site

  1. Open your master layout

    resources/views/layouts/app.blade.php — the file your pages @extend.

  2. Paste before </body>

    Below @yield('content') / your @stack('scripts'), above the closing </body>.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Clear the view cache

    Run `php artisan view:clear` if you cache compiled views in production.

app.blade.php is the file every page @extends, so one paste covers the site. Projects that ship more than one layout (a separate admin or guest layout) need the snippet in each one you want the widget on.

Not showing up? Common Laravel (Blade) issues
  • Change is live locally but not on the serverCompiled Blade views are cached in production. Run php artisan view:clear (and php artisan optimize if you cache config).
  • Widget missing on some pages onlyThose pages extend a different layout. Search resources/views/layouts for other layout files and add it there too.
  • Blade renders the snippet as visible textIt was placed inside {{ }} escaping. Paste it as raw HTML in the template, outside any Blade echo braces.

Official Laravel (Blade) documentation: laravel.com · laravel.com

How to add a chatbot to a Django site

  1. Open your base template

    templates/base.html — whichever template the rest {% extends %}.

  2. Paste before </body>

    After your {% block scripts %}, just above the closing </body>.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Restart

    Restart the dev server; in production run collectstatic if your host requires it.

If django-csp is installed, add the widget host to CSP_SCRIPT_SRC and CSP_CONNECT_SRC. The widget is loaded from your HTML, so Django's static pipeline is not involved and collectstatic is only relevant if your base template itself is served as a static asset.

Not showing up? Common Django issues
  • Widget missing on some pagesThose templates extend a different base, or override the block the snippet sits in. Put the tag outside every {% block %}, immediately before </body> in the base template.
  • Console reports a Content-Security-Policy violationdjango-csp is enforcing a policy that omits the widget host. Add it to CSP_SCRIPT_SRC and CSP_CONNECT_SRC, then restart the app.
  • Nothing changes after editing the templateTemplate caching (cached.Loader) is on, or the process was not restarted. Restart the app server; in development confirm DEBUG templates are not cached.

Official Django documentation: docs.djangoproject.com · docs.djangoproject.com

How to add a chatbot to a Ruby on Rails site

  1. Open the application layout

    app/views/layouts/application.html.erb.

  2. Paste before </body>

    Below <%= yield %>, above the closing </body> tag.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>

If you use Turbo/Turbolinks the widget persists across navigations automatically. Add the widget host to config/initializers/content_security_policy.rb if CSP is on.

Not showing up? Common Ruby on Rails issues
  • Widget missing inside the admin or a namespaced sectionThat controller renders a different layout. Check app/views/layouts for other .html.erb layouts and add the tag to each.
  • CSP blocks the script in production onlycontent_security_policy.rb is enforced in production but report-only in development. Add the widget host to the script_src and connect_src directives, then redeploy.
  • Asset changes deployed but the layout looks unchangedA CDN or Rack::Cache is serving the previous HTML. Purge the CDN cache and hard-reload.

Official Ruby on Rails documentation: guides.rubyonrails.org · guides.rubyonrails.org

How to add a chatbot to a PHP website

  1. Open your shared footer include

    Usually footer.php — the file every page require()s at the bottom.

  2. Paste before </body>

    Adding it once here covers every page that includes the footer.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>

If you have no shared footer, the snippet must go on each page individually — and this is a good moment to create one: move the closing markup into footer.php and require it from each page, so future changes are one edit.

Not showing up? Common PHP (no framework) issues
  • Widget appears on some pages but not othersNot every page includes the shared footer. Grep the site for pages without the footer include and add it, or paste the snippet into those pages directly.
  • The snippet shows as text on the pageIt was pasted inside a PHP block rather than the HTML section. Close PHP with ?> before the tag, or wrap it in echo with quotes escaped.
  • Uploaded the file but the server still serves the old pageOPcache or a host page cache is holding the previous version. Clear the host cache (or restart PHP-FPM) and hard-reload.

Official PHP (no framework) documentation: www.php.net · www.php.net

How to add a chatbot to an ASP.NET or Blazor site

  1. Open your shared layout

    Razor Pages / MVC: Pages/Shared/_Layout.cshtml or Views/Shared/_Layout.cshtml. Blazor: App.razor or wwwroot/index.html.

  2. Paste before </body>

    Below @RenderSection("Scripts", required: false), above the closing </body>.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Rebuild and restart the app

    Razor views are compiled unless runtime compilation is enabled, so the change reaches the browser only after a rebuild and restart.

Blazor Server and Blazor WebAssembly both keep their host page outside the component tree (App.razor / wwwroot/index.html), which is exactly where the widget belongs — it is unaffected by Blazor's render cycle and survives navigation without any component wiring.

Not showing up? Common ASP.NET / Blazor issues
  • Edited _Layout.cshtml and nothing changedRazor runtime compilation is off, so the compiled view is still the old one. Rebuild the project and restart the app (or add the RazorRuntimeCompilation package in development).
  • Widget missing in the Areas section of an MVC appAreas often ship their own _Layout.cshtml. Add the snippet to each Areas/*/Views/Shared/_Layout.cshtml you want it on.
  • Blazor: script runs but the widget disappears after navigatingIt was placed inside a component rather than the host page. Move it to App.razor / wwwroot/index.html, before </body>.

Official ASP.NET / Blazor documentation: learn.microsoft.com · learn.microsoft.com

How to add a chatbot to Drupal

  1. Add a block with the snippet

    Structure → Block layout → Add custom block

    Create a custom block, set the text format to Full HTML, and paste the snippet into the body.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  2. Place it in a region on every page

    Place the block into the Footer region of your active theme and leave the visibility conditions empty so it shows on all pages.

  3. Clear caches

    Run drush cr, or use Configuration → Performance → Clear all caches.

The block route survives updates. If you maintain a custom theme you can instead add the tag to html.html.twig before </body>, or attach it as a library in THEME.libraries.yml — but a core or theme update can overwrite a directly edited template.

Not showing up? Common Drupal issues
  • The script tag is stripped when the block is savedThe text format is Basic HTML or Restricted HTML, which filters <script>. Switch the block body's text format to Full HTML and save again as an administrator.
  • Saved and placed, still nothing on the pageDrupal's render cache is serving the previous markup. Clear all caches (drush cr) and hard-reload.

Official Drupal documentation: www.drupal.org

How to add a chatbot to Joomla

  1. Create a Custom module

    Content → Site Modules → New → Custom

    Choose the Custom module type and give it any title.

  2. Paste the snippet as source code

    In the editor toolbar click Toggle Editor (or CodeMirror's source view) so the snippet is saved as raw HTML rather than escaped text.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Assign it to every page

    Set Position to a footer position in your template, and on the Menu Assignment tab choose On all pages. Save.

Editing the template's index.php directly also works (before </body>), but a template update overwrites it — the Custom module survives.

Not showing up? Common Joomla issues
  • The snippet is visible as text on the pageTinyMCE escaped the tag because the editor was not toggled off. Re-open the module, toggle the editor to source mode, paste again and save.
  • Widget only on the home pageMenu Assignment defaults to selected pages. Set Menu Assignment to On all pages.

Official Joomla documentation: docs.joomla.org

How to add a chatbot to Magento (Adobe Commerce)

  1. Open the design configuration

    Content → Design → Configuration → Edit (your store view)

    Edit the design configuration for the store view you are installing on.

  2. Paste into Footer Miscellaneous HTML

    Expand HTML Head or Footer, and use the Miscellaneous HTML field in the Footer section — it renders before </body> on every page. Save Configuration.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Flush the cache

    Run bin/magento cache:flush, or use System → Cache Management and refresh the invalidated caches.

Design configuration is scoped. Setting it at Default scope covers every store view; setting it on one store view covers only that one.

Not showing up? Common Magento / Adobe Commerce issues
  • Saved but the storefront is unchangedMagento's full page cache is still serving the old HTML. Flush the cache, and if Varnish is in front, purge it too.
  • Widget on one store view onlyThe setting was saved at store-view scope. Repeat at Default scope, or on each store view you need.

Official Magento / Adobe Commerce documentation: experienceleague.adobe.com

How to add a chatbot to a HubSpot CMS website

  1. Open your website settings

    Settings → Content → Pages

    In HubSpot, open Settings, then Content, then Pages.

  2. Paste into the site footer HTML

    On the Templates tab, find Site header HTML / Site footer HTML and paste the snippet into the FOOTER box. Save.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Check the domain scope

    If you host more than one domain in HubSpot, use the domain selector at the top to apply the footer HTML to each one you need.

Settings-level footer HTML applies site-wide. A page's own Advanced → Head HTML applies to that page only, so use the settings route for the widget.

Not showing up? Common HubSpot CMS issues
  • Widget missing on some pagesThe footer HTML was applied to one domain, or a page overrides the template. Apply it to every domain in the selector and check the page's own advanced settings.
  • Change not visible immediatelyHubSpot serves pages through a CDN. Hard-reload, and allow a short delay for the CDN to update.

Official HubSpot CMS documentation: knowledge.hubspot.com

Anything else

How to add a chatbot to any other website

  1. Find the file that every page shares

    Almost every stack has one: a layout, a template, a master page, or a footer include. Adding the snippet there once covers the whole site.

  2. Paste it immediately before </body>

    That position is the safe default everywhere — the widget loads after your content, so it can never slow down or block your page.

    <script
      src="https://widget.congreeto.com/widget.v1.js"
      data-token="YOUR-CHATBOT-TOKEN"
      async
    ></script>
  3. Deploy the way you normally do, then reload

    Clear any CDN or page cache first, then hard-reload with Ctrl/Cmd+Shift+R.

Tell me what your site is built with — even roughly, or just paste the URL — and I will give you the exact file and menu path for it.

Not showing up? Common Something else / not sure issues
  • Not sure where the shared layout livesEvery stack names it differently. Tell me the framework or paste your site URL and I will identify it for you.

Official Something else / not sure documentation: developer.mozilla.org

Rather someone walked you through it?

Book a free 30-minute demo and we will show you the install on your own platform, or create an account and let the install assistant guide you. See pricing