Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
Cómo integrar el chat de Smartsupp a un sitio React (Gatsby)

Quiero integrar el chat de smartsupp en mi sitio de Gatsby (React), pero el sitio solo te da el siguiente código... Para un mejor rendimiento agregaría unos 5 segundos de espera antes de cargar.

 <script type="text/javascript"> var _smartsupp = _smartsupp || {}; _smartsupp.key = "YOUR_SMARTSUPP_CODE"; // ... // your configuration // ... window.smartsupp||(function(d) { var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[]; s=d.getElementsByTagName('script')[0];c=d.createElement('script'); c.type='text/javascript';c.charset='utf-8';c.async=true; c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s); })(document); </script>

Podría codificar un <script peligrosamenteSetInnerHTML={{__html: ... /> o ponerlo dentro de la etiqueta y hacer esto, pero creo que hay una mejor manera de tenerlo como componente

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Copie .cache/default-html.js a src/html.js .
Puedes personalizar el código en ....

Insertar HTML en el <head>
Cualquier cosa que represente en el componente html.js no se hará "en vivo" en el cliente como otros componentes. Si desea actualizar dinámicamente su <head>, le recomendamos usar React Helmet
- Documentos de Gatsby

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!