Follow these steps
Use the workspace and website that you intend to configure.
- Copy the embed from Install widget for the correct website.
- Use your Next.js project’s supported Script integration for the external widget script, preserving all generated data attributes.
- Load it once in the appropriate shared layout. Keep secret keys out of the component.
- Test the first page and a client-side navigation. Check that only one launcher appears and messages reach the right workspace.
What to check
Use the Next.js documentation for the version installed in your website. The generated embed is the source of truth for its URL and attributes.