Platform Guides March 28, 2026

How to Add a Video Bubble to React or Vue Sites

Learn how to easily add a video bubble widget to your React or Vue application with our step-by-step guide.

How to Add a Video Bubble to React or Vue Sites

Key takeaways

  • Add the account-provided CompleteGreet embed script to your site, then allow time for configuration and testing.
  • Use page targeting and scheduling to choose where and when the bubble appears, then test route changes.
  • Always test the video bubble on real devices, browser resizing tools won’t catch everything.

How do you install CompleteGreet on React or Vue?

Add a video bubble widget to React or Vue using the embed script supplied by your CompleteGreet dashboard. This route does not require a CompleteGreet npm package or component. Keep the complete snippet and its configuration intact, and adapt the loading method to your framework.

Process illustration for How do you install CompleteGreet on React or Vue

Here’s the step by step:

  1. Open the installation instructions for your site in the CompleteGreet dashboard.
  2. Use the Custom HTML embed route for a plain React or Vue site.
  3. Copy the complete embed snippet, including every account-specific attribute.
  4. For an app with an index.html template, add the snippet once in the head section and save. For Next.js or Nuxt, use the version-specific guidance below.
  5. Open the site in your supported test environment and check the configured placement, video and actions.

If the bubble does not appear, check script requests, console errors, consent settings and the configured domain.

What about Next.js and Nuxt.js?

If you’re using Next.js or Nuxt.js, there’s a small wrinkle. Server side rendering means the widget needs to load only in the browser, not during the server render pass.

For the Next.js App Router, next/script provides loading strategies for scripts in pages or layouts. lazyOnload runs at browser idle time after page resources load. Preserve the dashboard snippet’s required configuration and test the strategy in your shared layout. It does not guarantee freedom from hydration or performance issues.

In Nuxt 4, a top-level file such as app/plugins/completegreet.client.js is automatically registered, and the .client suffix restricts execution to the browser. Load the dashboard embed through that context and check that it is added once. Older Nuxt versions can have different directory and registration rules.

Load the embed once in the shared site shell where appropriate. Test direct page loads and client-side navigation separately. Do not assume the widget preserves video state or updates its targeting on every route.

What can you customize on React or Vue?

Page and visitor targeting

Use page targeting for selected URLs, such as /pricing or /demo, and scheduling for availability. Check the options supported by your campaign type rather than assuming every audience or trigger condition is available.

Comparison illustration for What can you customize on React or Vue

Here’s the part that’ll save you real time: all the targeting rules live in the dashboard, not in your code. So your marketing team can tweak visibility whenever they want without waiting around for a deploy. The widget picks up these rules at runtime through the embedded script.

CTA actions and click behavior

Choose supported actions such as custom links, live chat, phone calls, forms or meeting booking through Calendly or Google Calendar.

If an action needs to interact with app state or client-side routing, confirm the supported integration contract first. Do not rely on an undocumented JavaScript event or API method.

Form fields and lead routing

Create a standard form or a one-question-at-a-time multiform with the contact and choice fields you need. Test when the form appears and what happens after submission.

Supported form responses can be forwarded through webhooks, with integrations including HubSpot, Klaviyo and Slack. Test field mapping, consent and actual delivery to the destination you configure.

Visual branding and positioning

Use the dashboard’s brand and device controls for colors, buttons, position and desktop or mobile sizes. Check the result beside fixed navigation and other overlays.

When comparing the best video widget options for modern frameworks, test typography and layout on your site rather than assuming automatic CSS-variable or font inheritance.

A 5 step setup wizard showing how to add the account-provided CompleteGreet embed script to React or Vue, configure it and test before deployment.

Install CompleteGreet

Add a video bubble widget to your React or Vue site using the dashboard embed script

1
2
3
4
5

1

Create Your Account

Sign up at CompleteGreet and open the installation instructions for your site.

2

Copy the Embed Code

Copy the complete account-provided snippet. The box below is an instruction, not an installation command.

Copy the complete embed code from your CompleteGreet dashboard.

3

Choose the Script Location

Find your site’s HTML template or browser-only script-loading context. This is a placement instruction, not a component import.

Open the head section of your site's HTML template.

4

Add the Script

Add the complete dashboard embed once. For a plain HTML template, use the head section. Replace the comment below with your actual snippet.

<!-- Insert your complete dashboard embed code here. -->

5

Customize & Deploy

Upload your greeting video, set colors and page rules, then test playback, actions, routes and performance before deployment.

Source: CompleteGreet Developer Documentation

See the static HTML data above for the full breakdown.

What should you check before going live?

Before you flip the switch, test the video bubble on actual devices. Seriously, don’t just resize your browser window and call it a day. The widget behaves differently on iOS Safari versus Chrome mobile, and you need to see firsthand how that floating button interacts with your navigation elements.

Check your Core Web Vitals scores before and after installation. A video bubble widget shouldn’t be pushing your LCP or CLS into warning territory. Google Web Vitals guidance recommends keeping layout shifts under 0.1, so make sure the placeholder isn’t jumping around as the script loads.

Page targeting needs a close look on every route. With React and Vue, the widget might stick around across route changes if you placed the script in a layout wrapper, or it might reload on every navigation. Either behavior’s fine, but it has to match what you actually intended.

Go through and confirm the greeting only appears on the URLs you selected in your dashboard. Double check that it hides properly on checkout flows or any private pages where it doesn’t belong.

Here’s one that catches people off guard: mobile data usage.

A 30 second background video can chew through a visitor’s monthly data allowance if it autoplays on every page load. Set the mobile variant to a static thumbnail with a clear play button, and let the visitor decide when to start the stream. That small choice goes a long way.

Another thing that tends to break on live sites? Z index conflicts with modals and drawers. Your hamburger menu or cart drawer might render underneath the video bubble, or the bubble could vanish behind a popup. These stacking order headaches only surface on real implementations, you won’t catch them in isolated component tests.

Finally, run through the full visitor journey as a logged out user. Clear your cookies and cache, then walk the entire path from landing page to conversion. The video bubble should feel like a natural part of the experience, not some pop up demanding attention at exactly the wrong moment.

Add a video bubble through the embed script supplied by your CompleteGreet dashboard. An external script still adds network and execution work, even if its download is asynchronous.

Use the sequence below for a plain HTML template. Next.js and Nuxt require a loading method suited to their version and rendering setup.

Open your site’s installation instructions in CompleteGreet and copy the Custom HTML embed code. Retain all supplied attributes rather than constructing a URL or site identifier yourself.

Use the exact account-provided script. The comment below only marks its placement and is not a working embed:

<!-- Insert your complete dashboard embed code here. -->
  1. Open your project files and find the main HTML template.
  2. Paste the complete snippet once in the head section. Use the version-specific script loader instead if your framework does not expose a plain HTML template.
  3. Save, run your app and check that the expected script loads once on a fresh page request.

Measure LCP, INP and CLS before and after installation on representative devices. Asynchronous downloading does not remove script execution costs or guarantee unchanged performance.

For React Router or Vue Router, test direct entry, navigation, back and forward actions. Check visibility and video behavior on each route, and confirm any required navigation handling with support.

Measure valid completed enquiries and eligible visitors over the same period to evaluate results on your own pages. Count action clicks separately and do not infer causation from a before-and-after comparison alone.

Test your implementation on both desktop and mobile viewports before pushing to production. The bubble should stay visible but unobtrusive across breakpoints, and its controls and keyboard behavior should be checked against W3C accessibility guidance for screen reader compatibility.

Common questions

How do I add CompleteGreet to a React app without bloating my bundle size?

The dashboard’s embed script does not require adding a CompleteGreet package to your app bundle. For an app with index.html, add it once in the head section. The external script still has download and execution costs.

Why is my CompleteGreet video bubble not showing in my React app during local development?

Check the embed snippet, configured domain, console errors, blocked network requests and consent settings. Confirm the supported way to test localhost with CompleteGreet support rather than assuming a particular whitelist setting exists.

Will CompleteGreet slow down my React app’s performance?

External scripts and video can affect performance. Measure LCP, INP and CLS before and after installation on representative devices.

Can I show different CompleteGreet videos on different routes in my React Router app?

Use CompleteGreet’s documented page targeting for the URLs you want to serve. Test both direct loads and React Router navigation. Confirm any required route-change handling before relying on automatic video changes or undocumented API methods.

Does CompleteGreet work with server, side rendered React frameworks like Next.js?

The embed runs in the browser. In the Next.js App Router, evaluate next/script in a shared layout and preserve the dashboard snippet’s required configuration. Keep browser-only initialization out of server execution and test hydration, navigation and loading behavior.

How much does CompleteGreet cost for a React SaaS startup with 10k monthly visitors?

Compare the current plan’s visitor and video capacity with your usage. All 25 features are included in every paid plan. Paid counting is one unique IP per 24 hours. If you exceed your plan’s visitor limit, the bubble is hidden until the next billing period.

Azad Habib

Azad Habib

CEO & Founder of CompleteGreet

Azad Habib is the founder of CompleteGreet. With a background in ecommerce and user experience, he works at the intersection of trust, clarity, and conversion to help businesses make their websites feel more human from the first click.