APIs & Integrations

RTelyatnik
Miembro

Inject Hubspot Chat into Next.js app

Could you please tell, how to inject Hubspot chat widget to the Next.js app? Didn`t find any documentation for it.

0 Me gusta
3 Respuestas 3
MMalaya
Miembro

Inject Hubspot Chat into Next.js app

0 Me gusta
AA_AMPTech
Miembro

Inject Hubspot Chat into Next.js app

We have implemented it this way:

{/* Hubspot */}
<Script id="hs-script-loader"
src="//js-eu1.hs-scripts.com/25314488.js"
strategy={'lazyOnload'}

For some reason, it results to an error though which leads to sending a random form entry. Any ideas on how to solve this?

0 Me gusta
dennisedson
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Inject Hubspot Chat into Next.js app

Hey @RTelyatnik 

This is not next.js specific, but may help get you started.

@amjadg asked this question about chat in a React app.

@kierana and @Mark_Ryba had some useful insights.