TapCub is live — analytics, insights and live chat, free on one platform
Live Chat

WordPress Live Chat: Plugin or Script and What Each Costs You

Three ways to add live chat to WordPress compared by steps, maintenance and page speed: a plugin, a script in the theme header, and a tag manager. Includes a five-run speed test with a decision rule.

Emma Collins Published Nov 22, 2026 11 min read Live Chat
Sample data: median of five runs each. The plugin adds 0.7 seconds and crosses Google's 2.5-second good threshold; the header script adds 0.1 seconds. Measure your own pages before choosing.Sample data

To add live chat to WordPress, either install the vendor's plugin or paste the vendor's one-line script into the theme header. The script route has fewer parts to break; the plugin route helps editors who cannot reach the header. The real cost is page speed and upkeep, so measure with five runs on and off and compare medians against the 2.5-second good line for Largest Contentful Paint.

What you will learn

  • If you can edit the header, a script has the least that can break; use a plugin when you cannot, after checking its update history
  • Measure five runs with and without chat and compare medians; accept a method that adds 0.3 seconds or less and stays under 2.5 seconds
  • Re-test monthly and after any theme change, because a theme switch or cache can silently remove the widget

What are the ways to add live chat to WordPress?

There are three ways, and every chat product uses one of them.

MethodWhat you doWho keeps it working
Chat pluginInstall and activate a plugin from the WordPress directory or a vendor, connect your chat account, set optionsYou update the plugin; the vendor updates its code
Script in the theme headerPaste one <script> tag into the global header, either in the theme or through a header-injection fieldYou keep the tag when the theme changes
Tag managerLoad the same script through a tag manager container that is itself installed onceWhoever owns the container

WordPress powers 38.5% of all websites and 57.4% of those with a known content management system, according to W3Techs on 22 November 2026, so most chat vendors publish a plugin and a script. The two work the same way in the end: the visitor's browser loads a chat file from the vendor's server. The difference is what lives on your side of the fence, and that decides maintenance and speed. If you want the general procedure for any site, add live chat to a website covers it, and the step-by-step page for this platform is install on WordPress. This article is about choosing between the methods.

Plugin or script: what do you give up with each?

The trade is convenience against control. The table counts the steps of a typical install and lists the failure you are most likely to meet.

PluginScript in headerTag manager
Typical steps6: install, activate, sign in, connect site, set options, test4: copy tag, paste in header, save and clear cache, test6: container installed, new tag, trigger, publish, clear cache, test
Extra code on your serverThe plugin's PHP runs on every page requestNone; the tag is plain HTMLContainer snippet only
Settings screens inside WordPressYesNo; settings live in the chat productNo
Most likely failurePlugin conflict or update breaks the widgetTheme change or page cache hides the tagContainer not published, consent rule blocks the tag
UninstallDeactivate and delete; check leftover optionsRemove one lineRemove or pause one tag
Best whenSeveral non-technical editors and no header accessOne person who can edit the theme or header fieldMany third-party tags already managed centrally

Three judgement rules follow from the table:

  • If you can edit the header, the script route has the least that can break, because there is nothing to update on your server.
  • If you cannot touch the header and a vendor plugin exists, the plugin is the practical choice; check when it was last updated and whether it works with your WordPress version before installing.
  • If a tag manager already carries your analytics and consent logic, put chat there so one consent rule governs everything; otherwise adding one just for chat is more machinery than it is worth.
PluginScript in header
Typical steps64
Extra code on your serverPHP runs on every requestNone
Settings screen in WordPressYesNo
Most likely failurePlugin conflict or updateTheme change or page cache
UninstallDeactivate, delete, check leftoversRemove one line

A tag manager adds a third route if one already carries your analytics and consent rules.

How much does it slow the page down?

Every method loads a file from the chat vendor, so the question is how much and when, not whether. Google's Core Web Vitals give you the yardstick: a page is rated good when its Largest Contentful Paint is 2.5 seconds or less, its Interaction to Next Paint is 200 milliseconds or less and its Cumulative Layout Shift is 0.1 or less, assessed at the 75th percentile of page loads (web.dev).

Measure it yourself, because the answer depends on your theme, host and cache. A protocol that takes about twenty minutes:

  1. Pick one representative page, such as the home page or a product page.
  2. Run five tests with chat off, using the same tool, device profile and network setting each time. Note the Largest Contentful Paint of each and take the median.
  3. Turn chat on with method A. Clear the page cache. Run five tests again and take the median.
  4. Remove method A, repeat for method B.
  5. Compare medians, not single runs; single runs vary too much.

Sample data, five runs each, Largest Contentful Paint in seconds:

SetupRunsMedian
No chat1.9, 2.0, 1.8, 2.1, 1.91.9
Chat plugin2.5, 2.7, 2.4, 2.6, 2.82.6
Chat script in header2.0, 2.1, 1.9, 2.1, 2.02.0

The recomputation: the medians are the third value of each sorted list: 1.9, 2.6 and 2.0. The plugin adds 2.6 − 1.9 = 0.7 seconds and pushes the page past the 2.5-second line; the script adds 2.0 − 1.9 = 0.1 seconds. These numbers are illustrative: your own measurement is the one to trust, and a well-built plugin can perform like a script.

A decision rule you can apply to your own numbers: accept a method if the median Largest Contentful Paint rises by 0.3 seconds or less and stays under 2.5 seconds; if it crosses 2.5, load the chat later or switch method. WordPress itself helps here: since version 6.3 a script registered with wp_enqueue_script can pass 'strategy' => 'defer' or 'async' in its arguments, and a tag you paste in the header can carry defer the same way.

app.tapcub.com

Median Largest Contentful Paint

sample data, seconds
No chat1.9 s
Chat plugin2.6 s
Chat script in header2.0 s
Sample data
Sample data: median of five runs each. The plugin adds 0.7 seconds and crosses Google's 2.5-second good threshold; the header script adds 0.1 seconds. Measure your own pages before choosing.

How do I add a chat script to WordPress without a plugin?

The script route has the same few steps whichever chat product you use.

  1. Copy the tag from your chat product. It is one line that loads a file from the vendor and identifies your site.
  2. Find the right place. Use the theme's header settings if it has a custom code field. If not, use a child theme's header template or a small header-injection tool. Do not edit a parent theme directly, because an update will overwrite your change.
  3. Paste it once, in the global header. One copy, on every page. Two copies cause double loading, and some products load only the first.
  4. Save and clear every cache. Clear the WordPress page cache, any caching plugin, the host's cache and the CDN. Caches that serve saved HTML will keep serving the old header.
  5. Test in a private window. The widget should appear within a few seconds; send a message from the visitor side and answer it as an agent.
  6. Re-test after theme or builder changes. A theme switch or a page-builder template can drop a header tag, so add the check to your release routine.

If the widget does not appear, work through the usual suspects in this order: cache, a security plugin that blocks third-party scripts, a consent rule that is holding the tag back, and a content security policy that does not list the vendor's domain.

What breaks later, and who notices?

Install time is a small part of the cost. The failures that matter happen months later.

EventPlugin routeScript route
WordPress core updatePlugin may need a compatibility updateNot affected
Theme changeNot affectedTag must be re-pasted
Caching plugin added or changedCan serve stale pagesCan hide the new tag
Security hardeningMay be blocked by firewall rulesBlocked only if third-party scripts are blocked
Vendor changesPlugin update neededUsually none; the file is loaded from the vendor

Put a monthly check in the calendar: open the site in a private window, confirm the widget loads and run the speed measurement on the same page. The chat is a customer-facing feature, and nobody on your team will notice it has vanished until a customer says so.

How does this work in TapCub?

TapCub's documentation is explicit that there is no WordPress plugin for it and no plugin named TapCub to look for, so the script route is the only route, and it is short. The same single script carries web analytics and chat.

  1. Install the analytics script once. Paste the one-line tag into the theme header or a header custom-HTML field, as described in install on WordPress, then clear the page cache. Open Web analytics › Realtime and confirm your own visit appears.
  2. Turn chat on with a switch. In Live chat › Chat settings, enable live chat and save. The site's script loads the chat file only when the collect response says chat is enabled; tabs that are already open need one reload before the bubble appears. You do not paste a second script, and the documentation says not to add one.
  3. Set the look. Brand name, colour, bubble side and hiding the bubble on mobile are in Live chat › Chat settings › Appearance; the greeting is under Greeting & translation.
  4. Run your speed test. Use the protocol above on one page with the script and chat on, then off, and record the medians. Because the chat file loads only when enabled, switching chat off in settings removes it without touching the header.
  5. Check conversations carry context. Send a message from a private window; in Live chat › Inbox the agent sees the visitor's source and recent page views, because chat and analytics share one visitor ID.

If the theme caches HTML per page, clear that cache after any header change. TapCub does not offer a WordPress settings screen; configuration is in the console, not in wp-admin.

FAQ

How do I add live chat to WordPress?

Either install the chat vendor's plugin, or paste the vendor's one-line script into the theme header and clear every cache. The script route has fewer moving parts if you can edit the header; the plugin route suits editors who cannot. Test in a private window afterwards.

Does a live chat plugin slow down WordPress?

It can, because it loads the vendor's file and may add PHP work on every request. Measure with five runs with and without chat, compare medians and judge against Google's good threshold of 2.5 seconds for Largest Contentful Paint. Your own medians beat any general claim.

Do I need a plugin for live chat on WordPress?

No. Any chat product that gives you a script tag works without a plugin: paste the tag once in the global header. Plugins add a settings screen inside WordPress and convenience for non-technical editors, at the cost of one more thing to update.

Where do I paste the chat script in WordPress?

In the global header, once, so it loads on every page. Use the theme's custom code field, a child theme's header template or a header-injection tool. Avoid editing a parent theme directly, because an update overwrites it.

Why is my chat widget not showing on WordPress?

Check in this order: a page cache serving old HTML, a security plugin blocking third-party scripts, a consent rule holding the tag, and a content security policy that omits the vendor's domain. Reload in a private window after clearing the caches.

Sources

Filed underLive Chat

Was this article helpful?

We use your answers to fix and expand this page.

Emma Collins

Product Analyst

Focuses on event analysis, conversion funnels, and retention, using clear metric definitions and structured analysis to explain product performance.

Chat and analytics from one script

One line in the WordPress header gives you web analytics, and a switch in settings turns on live chat with visitor context.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics